]> git.baikalelectronics.ru Git - kernel.git/commit
net: bridge: add notifications for the bridge dev on vlan change
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Wed, 1 Nov 2017 10:18:13 +0000 (12:18 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Nov 2017 06:53:40 +0000 (15:53 +0900)
commit7b1b76f53be173334b8d9fd25d26ec2352dfeaf5
tree75964113b15c223e5ff57e2921e48070f87f47be
parent9a198d20d6fba78479f0554671b028b371b773ab
net: bridge: add notifications for the bridge dev on vlan change

Currently the bridge device doesn't generate any notifications upon vlan
modifications on itself because it doesn't use the generic bridge
notifications.
With the recent changes we know if anything was modified in the vlan config
thus we can generate a notification when necessary for the bridge device
so add support to br_ifinfo_notify() similar to how other combined
functions are done - if port is present it takes precedence, otherwise
notify about the bridge. I've explicitly marked the locations where the
notification should be always for the port by setting bridge to NULL.
I've also taken the liberty to rearrange each modified function's local
variables in reverse xmas tree as well.

Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br.c
net/bridge/br_if.c
net/bridge/br_ioctl.c
net/bridge/br_netlink.c
net/bridge/br_private.h
net/bridge/br_stp.c
net/bridge/br_stp_if.c
net/bridge/br_stp_timer.c
net/bridge/br_sysfs_if.c