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

Since commit b0aa14feb4b1 ("rtnetlink: bring NETDEV_CHANGEUPPER event
process back in rtnetlink_event"), rtnetlink_event would process the
NETDEV_CHANGEUPPER event and send a notification to userspace.

In add_del_if, it would generate NETDEV_CHANGEUPPER event by whether
netdev_master_upper_dev_link or netdev_upper_dev_unlink. There's
no need to call rtmsg_ifinfo to send the notification any more.

So this patch is to remove it from add_del_if also to avoid redundant
notifications.

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