[Intel-wired-lan] [PATCH net] ice: disable stripping in default VSI ctx

Marcin Szycik marcin.szycik at linux.intel.com
Fri May 27 13:01:03 UTC 2022


Hi Paul,

On 27-May-22 14:15, Paul Menzel wrote:
> Dear Marcin, dear Michal,
> 
> 
> Am 27.05.22 um 13:51 schrieb Marcin Szycik:
>> From: Michal Swiatkowski <michal.swiatkowski at linux.intel.com>
>>
>> In case when driver is in eswitch mode, having VLAN stripping enabled
>> causes failure in communication. All VLAN configuration commands are
>> blocked, because of that VF driver can't disable VLAN stripping at
> 
> s/blocked, because/blocked. Because/

Sorry, but I don't understand what to change here. Could you explain more clearly?

> 
>> initialization. It leads to the situation when VLAN stripping on VF VSI
>> is on, but in kernel it is off.
>>
>> To prevent this, set VLAN stripping to disabled in VSI initialization.
> 
> Maybe: …, disable VLAN stripping in VSI initialization.

Sounds good.

> 
>> It doesn't break other usecases, because it is set according to kernel
>> settings.
> 
> Please document your test setup.

Will reproduction steps be enough?


Thanks for the review!

Marcin

> 
> 
> Kind regards,
> 
> Paul
> 
> 
>> Fixes: f09901aa554a ("ice: remove VLAN representor specific ops")
>> Signed-off-by: Michal Swiatkowski <michal.swiatkowski at linux.intel.com>
>> Signed-off-by: Marcin Szycik <marcin.szycik at linux.intel.com>
>> ---
>>   drivers/net/ethernet/intel/ice/ice_lib.c | 3 +++
>>   1 file changed, 3 insertions(+)
>>
>> diff --git a/drivers/net/ethernet/intel/ice/ice_lib.c b/drivers/net/ethernet/intel/ice/ice_lib.c
>> index 70961c0343e7..b28fb8eacffb 100644
>> --- a/drivers/net/ethernet/intel/ice/ice_lib.c
>> +++ b/drivers/net/ethernet/intel/ice/ice_lib.c
>> @@ -887,6 +887,9 @@ static void ice_set_dflt_vsi_ctx(struct ice_hw *hw, struct ice_vsi_ctx *ctxt)
>>               (ICE_AQ_VSI_OUTER_TAG_VLAN_8100 <<
>>                ICE_AQ_VSI_OUTER_TAG_TYPE_S) &
>>               ICE_AQ_VSI_OUTER_TAG_TYPE_M;
>> +        ctxt->info.outer_vlan_flags |=
>> +            FIELD_PREP(ICE_AQ_VSI_OUTER_VLAN_EMODE_M,
>> +                   ICE_AQ_VSI_OUTER_VLAN_EMODE_NOTHING);
>>       }
>>       /* Have 1:1 UP mapping for both ingress/egress tables */
>>       table |= ICE_UP_TABLE_TRANSLATE(0, 0)


More information about the Intel-wired-lan mailing list