netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net 0/3] Bonding: fix high prio not effect issue
@ 2022-12-12  3:56 Hangbin Liu
  2022-12-12  3:56 ` [PATCHv2 net 1/3] bonding: add missed __rcu annotation for curr_active_slave Hangbin Liu
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Hangbin Liu @ 2022-12-12  3:56 UTC (permalink / raw)
  To: netdev
  Cc: Jay Vosburgh, David S . Miller, Jakub Kicinski, Jonathan Toppins,
	Paolo Abeni, Eric Dumazet, liali, Saeed Mahameed, Hangbin Liu

When a high prio link up, if there has current link, it will not do
failover as we missed the check in link up event. Fix it in this patchset
and add a prio option test case.

v2:
1. use rcu_access_pointer() instead of rtnl_dereference().
2: make do_failover after looping all slaves

Hangbin Liu (2):
  bonding: add missed __rcu annotation for curr_active_slave
  bonding: do failover when high prio link up

Liang Li (1):
  selftests: bonding: add bonding prio option test

 drivers/net/bonding/bond_main.c               |  24 +-
 .../selftests/drivers/net/bonding/Makefile    |   3 +-
 .../drivers/net/bonding/option_prio.sh        | 245 ++++++++++++++++++
 3 files changed, 262 insertions(+), 10 deletions(-)
 create mode 100755 tools/testing/selftests/drivers/net/bonding/option_prio.sh

-- 
2.38.1


^ permalink raw reply	[flat|nested] 7+ messages in thread
* [PATCH net 0/3] Bonding: fix high prio not effect issue
@ 2022-12-09 10:13 Hangbin Liu
  2022-12-10  0:01 ` Jay Vosburgh
  0 siblings, 1 reply; 7+ messages in thread
From: Hangbin Liu @ 2022-12-09 10:13 UTC (permalink / raw)
  To: netdev
  Cc: Jay Vosburgh, David S . Miller, Jakub Kicinski, Jonathan Toppins,
	Paolo Abeni, Eric Dumazet, liali, Hangbin Liu

When a high prio link up, if there has current link, it will not do
failover as we missed the check in link up event. Fix it in this patchset
and add a prio option test case.

Hangbin Liu (2):
  bonding: access curr_active_slave with rtnl_dereference
  bonding: do failover when high prio link up

Liang Li (1):
  selftests: bonding: add bonding prio option test

 drivers/net/bonding/bond_main.c               |   6 +-
 .../selftests/drivers/net/bonding/Makefile    |   3 +-
 .../drivers/net/bonding/option_prio.sh        | 246 ++++++++++++++++++
 3 files changed, 252 insertions(+), 3 deletions(-)
 create mode 100755 tools/testing/selftests/drivers/net/bonding/option_prio.sh

-- 
2.38.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-12-14  3:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-12  3:56 [PATCH net 0/3] Bonding: fix high prio not effect issue Hangbin Liu
2022-12-12  3:56 ` [PATCHv2 net 1/3] bonding: add missed __rcu annotation for curr_active_slave Hangbin Liu
2022-12-12  3:56 ` [PATCHv2 net 2/3] bonding: do failover when high prio link up Hangbin Liu
2022-12-12  3:56 ` [PATCHv2 net 3/3] selftests: bonding: add bonding prio option test Hangbin Liu
2022-12-14  3:30 ` [PATCH net 0/3] Bonding: fix high prio not effect issue patchwork-bot+netdevbpf
  -- strict thread matches above, loose matches on Subject: below --
2022-12-09 10:13 Hangbin Liu
2022-12-10  0:01 ` Jay Vosburgh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).