]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: remove rtmsg_ifinfo called in bond_master_upper_dev_link
authorXin Long <lucien.xin@gmail.com>
Tue, 24 Oct 2017 05:54:18 +0000 (13:54 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Oct 2017 01:54:39 +0000 (10:54 +0900)
commit4b62856891cd13ecc5d71c08c3b5167d4e815d0d
treefabb2592d3ff9a7f5f3709ec5686f8a126fd5819
parent4f94f0abc8379ccaf3c9e2d4ed83336c75ef0772
bonding: remove rtmsg_ifinfo called in bond_master_upper_dev_link

Since commit 7d1d87328d19 ("net: add netnotifier event for upper device
change"), netdev_master_upper_dev_link has generated NETDEV_CHANGEUPPER
event which would send a notification to userspace in rtnetlink_event.

There's no need to call rtmsg_ifinfo to send the notification any more.
So this patch is to remove it from bond_master_upper_dev_link as well
as bond_upper_dev_unlink to avoid the redundant notifications.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c