]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: Obtain VLAN protocol from skb->protocol
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 2 Oct 2020 02:42:14 +0000 (19:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Oct 2020 20:36:07 +0000 (13:36 -0700)
commit0ccad859f1a5ec26465ca1248cd157a35d220624
tree362508b6b5469f9d3b6731c3645956dc12f9a245
parenta6ff577681322c8fdc98c590d6196f59cc7e2bf1
net: dsa: Obtain VLAN protocol from skb->protocol

Now that dsa_untag_bridge_pvid() is called after eth_type_trans() we are
guaranteed that skb->protocol will be set to a correct value, thus
allowing us to avoid calling vlan_eth_hdr().

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/dsa_priv.h