]> git.baikalelectronics.ru Git - kernel.git/commit
net: bridge: vlan: notify on vlan add/delete/change flags
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Tue, 14 Jan 2020 17:56:14 +0000 (19:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Jan 2020 12:48:18 +0000 (13:48 +0100)
commit8c12af5664e75aa37b4fc96f16e71b7af2f4c154
treefabdf1329730096e3334d1a478749d8dd6be344d
parentb53c19f6419a64208c3f3b17b6a4b1f437ab1385
net: bridge: vlan: notify on vlan add/delete/change flags

Now that we can notify, send a notification on add/del or change of flags.
Notifications are also compressed when possible to reduce their number
and relieve user-space of extra processing, due to that we have to
manually notify after each add/del in order to avoid double
notifications. We try hard to notify only about the vlans which actually
changed, thus a single command can result in multiple notifications
about disjoint ranges if there were vlans which didn't change inside.

Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_netlink.c
net/bridge/br_private.h
net/bridge/br_vlan.c