]> 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)
commit37a3cf8189fe9dccf48fe2c39d22f34d1de66be3
tree86e330aa6445b23b78197c6e0132f6ae70d2d4ed
parent5d6530e2ed73588ad2bd62ac5baf73bc41ed381a
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
7cf52f929470 ("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