bonding: ARP monitor spams NETDEV_NOTIFY_PEERS notifiers
authorJay Vosburgh <jay.vosburgh@canonical.com>
Thu, 16 Jun 2022 19:32:40 +0000 (12:32 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sat, 18 Jun 2022 03:18:44 +0000 (20:18 -0700)
commit7a9214f3d88cfdb099f3896e102a306b316d8707
treee9026f10d96dd123ef55fca62c36c60611f93b52
parent3f6a57ee8544ec3982f8a3cbcbf4aea7d47eb9ec
bonding: ARP monitor spams NETDEV_NOTIFY_PEERS notifiers

The bonding ARP monitor fails to decrement send_peer_notif, the
number of peer notifications (gratuitous ARP or ND) to be sent. This
results in a continuous series of notifications.

Correct this by decrementing the counter for each notification.

Reported-by: Jonathan Toppins <jtoppins@redhat.com>
Signed-off-by: Jay Vosburgh <jay.vosburgh@canonical.com>
Fixes: b0929915e035 ("bonding: Fix RTNL: assertion failed at net/core/rtnetlink.c for ab arp monitor")
Link: https://lore.kernel.org/netdev/b2fd4147-8f50-bebd-963a-1a3e8d1d9715@redhat.com/
Tested-by: Jonathan Toppins <jtoppins@redhat.com>
Reviewed-by: Jonathan Toppins <jtoppins@redhat.com>
Link: https://lore.kernel.org/r/9400.1655407960@famine
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/bonding/bond_main.c