Skip to content

Unsync addresses from ports when stopping aggregated devices

Benjamin Poirier linux-kselftest netdev 3 versions – Applied

Status from this message: This series was applied to netdev/net.git (master)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 1 replyApplied 4/4
  2. v23 patches 2 repliesSuperseded
  3. v13 patches 3 repliesSuperseded

Changes in v3 from the cover letter

* Split lacpdu_multicast changes to their own patch, #1
* In ndo_{add,del}_slave methods, only perform address list changes when the aggregated device is up (patches 2 & 3)
* Add selftest function related to the above change (patch 4)

Patches in v3 All 4 applied

#Subject and filesSizeRepliesApplied
1/4net: bonding: Share lacpdu_mcast_addr definitiondrivers/net/bonding/bond_3ad.c drivers/net/bonding/bond_main.c include/net/bond_3ad.h +1 more+10 -160 repliesApplied
2/4net: bonding: Unsync device addresses on ndo_stopdrivers/net/bonding/bond_main.c+35 -120 repliesApplied
3/4net: team: Unsync device addresses on ndo_stopdrivers/net/team/team.c+18 -60 repliesApplied
4/4net: Add tests for bonding and team address list managementMAINTAINERS tools/testing/selftests/Makefile tools/testing/selftests/drivers/net/bonding/Makefile +6 more+237 -10 repliesApplied

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJay Vosburgh
SeriesA-b
1/4
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH net v3 0/4] Unsync addresses from ports when stopping aggregated devices

This series fixes similar problems in the bonding and team drivers.

Because of missing dev_{uc,mc}_unsync() calls, addresses added to underlying devices may be leftover after the aggregated device is deleted. Add the missing calls and a few related tests.

v2:
* fix selftest installation, see patch 3

v3:
* Split lacpdu_multicast changes to their own patch, #1
* In ndo_{add,del}_slave methods, only perform address list changes when the aggregated device is up (patches 2 & 3)
* Add selftest function related to the above change (patch 4)

Benjamin Poirier (4):
net: bonding: Share lacpdu_mcast_addr definition
net: bonding: Unsync device addresses on ndo_stop
net: team: Unsync device addresses on ndo_stop
net: Add tests for bonding and team address list management

 MAINTAINERS                                   |   1 +
 drivers/net/bonding/bond_3ad.c                |   5 +-
 drivers/net/bonding/bond_main.c               |  57 +++++----
 drivers/net/team/team.c                       |  24 +++-
 include/net/bond_3ad.h                        |   2 -
 include/net/bonding.h                         |   3 +
 tools/testing/selftests/Makefile              |   1 +
 .../selftests/drivers/net/bonding/Makefile    |   5 +-
 .../selftests/drivers/net/bonding/config      |   1 +
 .../drivers/net/bonding/dev_addr_lists.sh     | 109 ++++++++++++++++++
 .../selftests/drivers/net/bonding/lag_lib.sh  |  61 ++++++++++
 .../selftests/drivers/net/team/Makefile       |   6 +
 .../testing/selftests/drivers/net/team/config |   3 +
 .../drivers/net/team/dev_addr_lists.sh        |  51 ++++++++
 14 files changed, 297 insertions(+), 32 deletions(-)
 create mode 100755 tools/testing/selftests/drivers/net/bonding/dev_addr_lists.sh
 create mode 100644 tools/testing/selftests/drivers/net/bonding/lag_lib.sh
 create mode 100644 tools/testing/selftests/drivers/net/team/Makefile
 create mode 100644 tools/testing/selftests/drivers/net/team/config
 create mode 100755 tools/testing/selftests/drivers/net/team/dev_addr_lists.sh
Signature · 1 line
2.37.2