]> git.baikalelectronics.ru Git - kernel.git/commit
bridge: mdb: add vlan support for user entries
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Fri, 10 Jul 2015 15:02:08 +0000 (08:02 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Jul 2015 21:41:26 +0000 (14:41 -0700)
commit9aa282e059ebc500e32a0d95aa6195a416cf29e9
treede60cdbdc6df04a7605ff527cb54f8d76af9cfc2
parent0d75476aa84686c8573637e3ad302fb28d7788ad
bridge: mdb: add vlan support for user entries

Until now all user mdb entries were added in vlan 0, this patch adds
support to allow the user to specify the vlan for the entry.
About the uapi change a hole in struct br_mdb_entry is used so the size
and offsets are kept the same (verified with pahole and tested with older
iproute2).

Example:
$ bridge mdb
dev br0 port eth1 grp 239.0.0.1 permanent vlan 2000
dev br0 port eth1 grp 239.0.0.1 permanent vlan 200
dev br0 port eth1 grp 239.0.0.1 permanent

Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/if_bridge.h
net/bridge/br_mdb.c