]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jun 2022 06:58:46 +0000 (08:58 +0200)
commitb6d120cf2443c00758e032073c11566a141057a3
tree4807fbe812d7154b0fc4cc7402f073ab7816ab4e
parent58e3dfc00436fe32a6426000ed1ef7e14a3357ad
bonding: ARP monitor spams NETDEV_NOTIFY_PEERS notifiers

[ Upstream commit 539deb85ceb9a2c35e2f52c28a8689c7bbaddb9b ]

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: ab0a4d932d7e ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/bonding/bond_main.c