diff options
author | Benjamin Poirier <bpoirier@nvidia.com> | 2022-09-07 16:56:41 +0900 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-09-16 14:34:01 +0100 |
commit | bd60234222b2fd5573526da7bcd422801f271f5f (patch) | |
tree | 8fb3804dd05067e514b63491ac99fc529ce76f79 /lib/mpi/mpi-sub-ui.c | |
parent | 86247aba599e5b07d7e828e6edaaebb0ef2b1158 (diff) |
net: team: Unsync device addresses on ndo_stop
Netdev drivers are expected to call dev_{uc,mc}_sync() in their
ndo_set_rx_mode method and dev_{uc,mc}_unsync() in their ndo_stop method.
This is mentioned in the kerneldoc for those dev_* functions.
The team driver calls dev_{uc,mc}_unsync() during ndo_uninit instead of
ndo_stop. This is ineffective because address lists (dev->{uc,mc}) have
already been emptied in unregister_netdevice_many() before ndo_uninit is
called. This mistake can result in addresses being leftover on former team
ports after a team device has been deleted; see test_LAG_cleanup() in the
last patch in this series.
Add unsync calls at their expected location, team_close().
v3:
* When adding or deleting a port, only sync/unsync addresses if the team
device is up. In other cases, it is taken care of at the right time by
ndo_open/ndo_set_rx_mode/ndo_stop.
Fixes: 3d249d4ca7d0 ("net: introduce ethernet teaming device")
Signed-off-by: Benjamin Poirier <bpoirier@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions