]> 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)
commit9df6e854cc48baebcbaaebe7b12f8dd368f8b326
tree86e330aa6445b23b78197c6e0132f6ae70d2d4ed
parentf998f738a2de809728d5375927ecabcf972ef205
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
c1aa7fb1343b ("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