]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Fix transmit for all software offloaded VLANs
authorBrett Creeley <brett.creeley@intel.com>
Sat, 16 May 2020 00:51:19 +0000 (17:51 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sun, 31 May 2020 10:38:20 +0000 (03:38 -0700)
commit98648f1c60d4d396e7df414d46b55f2a2cafd622
tree512e23607c416ed1ae071c77b73957bb8305c215
parentbee9954a3af7789cf14cc88c9f5a59a5ad085606
ice: Fix transmit for all software offloaded VLANs

Currently the driver does not recognize when there is an 802.1AD VLAN
tag right after the dmac/smac (outermost VLAN tag). If any DCB map is
applied and/or DCB is enabled this is causing the hardware to insert a
VLAN 0 tag after the 802.1AD VLAN tag that is already in the packet.
Fix this by preventing VLAN tag 0 from being added when any VLAN is
already present after dmac/smac (software offloaded) or skb (hardware
offloaded).

Signed-off-by: Brett Creeley <brett.creeley@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_dcb_lib.c
drivers/net/ethernet/intel/ice/ice_dcb_lib.h
drivers/net/ethernet/intel/ice/ice_txrx.c