]> git.baikalelectronics.ru Git - kernel.git/commit
net: bridge: export vlan flags with the stats
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Wed, 17 Aug 2016 10:53:10 +0000 (12:53 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Aug 2016 06:18:42 +0000 (23:18 -0700)
commit0eff050c71b25a4e215ca87e591c584dcc0312f0
tree72e93abc50fa837e1e73b0a4601c84ef5ebe10a8
parent1635953c5c258d652a50a4c6f7dc4a94570d0c8d
net: bridge: export vlan flags with the stats

Use one of the vlan xstats padding fields to export the vlan flags. This is
needed in order to be able to distinguish between master (bridge) and port
vlan entries in user-space when dumping the bridge vlan stats.

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_netlink.c