]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: Call dsa_untag_bridge_pvid() from dsa_switch_rcv()
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 2 Oct 2020 02:42:12 +0000 (19:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Oct 2020 20:36:07 +0000 (13:36 -0700)
commit9ebcf79658b1170a411c4d7351eb8b2485e82e32
treee643ac1120c682b4b27a44741146735b78a1fe4b
parentf23c836294dc8fade5c82a03590ca598b9cef237
net: dsa: Call dsa_untag_bridge_pvid() from dsa_switch_rcv()

When a DSA switch driver needs to call dsa_untag_bridge_pvid(), it can
set dsa_switch::untag_brige_pvid to indicate this is necessary.

This is a pre-requisite to making sure that we are always calling
dsa_untag_bridge_pvid() after eth_type_trans() has been called.

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>
include/net/dsa.h
net/dsa/dsa.c