Skip to content

bonding:use latest lacp_rate and ad_select and delete unused ad_timer and arp_mon_pt

Weiping Pan lkml netdev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest posting 2/25 patches 4 repliesIn review
  2. v4 posting 1/25 patches 1 replySuperseded
  3. v11 patch 1 replySuperseded

Changes in v4 from the cover letter

delete unused ad_timer and arp_mon_pt.

Patches in v4 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5bonding: make 802.3ad use latest lacp_ratedrivers/net/bonding/bond_3ad.c drivers/net/bonding/bond_3ad.h drivers/net/bonding/bond_sysfs.c+33 -00 replies
2/5bonding:delete lacp_fast from ad_bond_infodrivers/net/bonding/bond_3ad.c drivers/net/bonding/bond_3ad.h drivers/net/bonding/bond_main.c+5 -100 replies
3/5bonding:delete agg_select_mode from ad_bond_infodrivers/net/bonding/bond_3ad.c drivers/net/bonding/bond_3ad.h+1 -30 replies
4/5bonding: delete unused ad_timerdrivers/net/bonding/bond_3ad.h+0 -10 replies
5/5bonding: delete unused arp_mon_ptdrivers/net/bonding/bonding.h+0 -10 replies

Reviews trailers per patch

2 of 5 patches have a Reviewed-by or Acked-by.

PatchWANG Cong
1/5
2/5
3/5
4/5R-b
5/5R-b

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

Read the v4 thread

Cover letter [PATCH v4 net-next 0/5] bonding:use latest lacp_rate and ad_select and delete unused ad_timer and arp_mon_pt

There is bug that when you modify lacp_rate via sysfs, 802.3ad won't use the new value of lacp_rate to transmit packets. This is because port->actor_oper_port_state isn't changed.

As for ad_select, it can work,
but both struct bond_params and ad_bond_info have lacp_fast and ad_select, they are duplicate and need extra synchronization.
802.3ad can get them from bond_params directly every time.

And ad_timer and arp_mon_pt aren't used any more, just delete them.

changelog:
v2:
add bond_3ad_update_lacp_rate() as a helper function, and hold bond->lock when iterates slave list.

v3:
delete duplicate lacp_fast and agg_select_mode from struct ad_bond_info.

v4:
delete unused ad_timer and arp_mon_pt.

Weiping Pan (5):
bonding: make 802.3ad use latest lacp_rate bonding:delete lacp_fast from ad_bond_info bonding:delete agg_select_mode from ad_bond_info
bonding: delete unused ad_timer
bonding: delete unused arp_mon_pt

 drivers/net/bonding/bond_3ad.c   |   41 ++++++++++++++++++++++++++++++++-----
 drivers/net/bonding/bond_3ad.h   |    8 +-----
 drivers/net/bonding/bond_main.c  |    3 +-
 drivers/net/bonding/bond_sysfs.c |    1 +
 drivers/net/bonding/bonding.h    |    1 -
 5 files changed, 39 insertions(+), 15 deletions(-)
Signature · 1 line
1.7.4.4