[Intel-wired-lan] [PATCH net-next v4 1/5] ice: define meta data to match in switch
Leon Romanovsky
leon at kernel.org
Sun Apr 9 10:33:40 UTC 2023
On Fri, Apr 07, 2023 at 06:52:15PM +0200, Michal Swiatkowski wrote:
> Add description for each meta data. Redefine tunnel mask to match only
> tunneled MAC and tunneled VLAN. It shouldn't try to match other flags
> (previously it was 0xff, it is redundant).
>
> VLAN mask was 0xd000, change it to 0xf000. 4 last bits are flags
> depending on the same field in packets (VLAN tag). Because of that,
> It isn't harmful to match also on ITAG.
>
> Group all MDID and MDID offsets into enums to keep things organized.
>
> Signed-off-by: Michal Swiatkowski <michal.swiatkowski at linux.intel.com>
> Reviewed-by: Piotr Raczynski <piotr.raczynski at intel.com>
> Reviewed-by: Simon Horman <simon.horman at corigine.com>
> ---
> .../ethernet/intel/ice/ice_protocol_type.h | 186 +++++++++++++++++-
> drivers/net/ethernet/intel/ice/ice_switch.c | 11 +-
> .../net/ethernet/intel/ice/ice_vlan_mode.c | 2 +-
> 3 files changed, 183 insertions(+), 16 deletions(-)
>
Thanks,
Reviewed-by: Leon Romanovsky <leonro at nvidia.com>
More information about the Intel-wired-lan
mailing list