]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: lan9303: handle hwaccel VLAN tags
authorMans Rullgard <mans@mansr.com>
Wed, 16 Feb 2022 12:46:34 +0000 (12:46 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 17 Feb 2022 17:32:06 +0000 (09:32 -0800)
commit1fa59911ec376aa823ed31344d9ff483db564638
tree4b4960824087ee418c400f230acdcf4fe1b8224a
parentdd2391c479623edcadd7953e58025e4b6c0fa7fc
net: dsa: lan9303: handle hwaccel VLAN tags

Check for a hwaccel VLAN tag on rx and use it if present.  Otherwise,
use __skb_vlan_pop() like the other tag parsers do.  This fixes the case
where the VLAN tag has already been consumed by the master.

Fixes: 3bbb5663f4fc ("net: dsa: add new DSA switch driver for the SMSC-LAN9303")
Signed-off-by: Mans Rullgard <mans@mansr.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Link: https://lore.kernel.org/r/20220216124634.23123-1-mans@mansr.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/dsa/tag_lan9303.c