diff options
author | Nikolay Aleksandrov | 2017-11-01 11:18:13 +0100 |
---|---|---|
committer | David S. Miller | 2017-11-02 07:53:40 +0100 |
commit | 928990631327cf00a9195e30fa22f7ae5f8d7e67 (patch) | |
tree | 75964113b15c223e5ff57e2921e48070f87f47be /net/bridge/br_ioctl.c | |
parent | net: hns3: remove a couple of redundant assignments (diff) | |
download | kernel-qcow2-linux-928990631327cf00a9195e30fa22f7ae5f8d7e67.tar.gz kernel-qcow2-linux-928990631327cf00a9195e30fa22f7ae5f8d7e67.tar.xz kernel-qcow2-linux-928990631327cf00a9195e30fa22f7ae5f8d7e67.zip |
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>
Diffstat (limited to 'net/bridge/br_ioctl.c')
-rw-r--r-- | net/bridge/br_ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/br_ioctl.c b/net/bridge/br_ioctl.c index 16d01a3ff33f..73b957fd639d 100644 --- a/net/bridge/br_ioctl.c +++ b/net/bridge/br_ioctl.c @@ -293,7 +293,7 @@ static int old_dev_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) if (!ret) { if (p) - br_ifinfo_notify(RTM_NEWLINK, p); + br_ifinfo_notify(RTM_NEWLINK, NULL, p); else netdev_state_change(br->dev); } |