]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: move reset of VLAN filtering to dsa_port_switchdev_unsync_attrs
authorVladimir Oltean <vladimir.oltean@nxp.com>
Fri, 15 Apr 2022 15:46:21 +0000 (18:46 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Apr 2022 09:34:34 +0000 (10:34 +0100)
commit8e9e678e4758b69b6231d3ad4d26d3381fdb5f3f
tree86e330aa6445b23b78197c6e0132f6ae70d2d4ed
parentcc4bdef26ecd56de16a04bc6d99aa10ff9076498
net: dsa: move reset of VLAN filtering to dsa_port_switchdev_unsync_attrs

In dsa_port_switchdev_unsync_attrs() there is a comment that resetting
the VLAN filtering isn't done where it is expected. And since commit
108dc8741c20 ("net: dsa: Avoid cross-chip syncing of VLAN filtering"),
there is no reason to handle this in switch.c either.

Therefore, move the logic to port.c, and adapt it slightly to the data
structures and naming conventions from there.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/port.c
net/dsa/switch.c