]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
net: bridge: consolidate bridge and port linkxstats calls
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Wed, 17 Aug 2016 10:53:09 +0000 (12:53 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Aug 2016 06:18:42 +0000 (23:18 -0700)
commitd5ff8c41b5f7289aee44df817023328295bc8463
tree4d40fe3b46b15e5f2b920de7c66f2ebe3b27ffff
parentfb36938de4d61d7a06c08054d0a0f885a4fd2f3c
net: bridge: consolidate bridge and port linkxstats calls

In the bridge driver we usually have the same function working for both
port and bridge. In order to follow that logic and also avoid code
duplication, consolidate the bridge_ and brport_ linkxstats calls into
one since they share most of their code. As a side effect this allows us
to dump the vlan stats also via the slave call which is in preparation for
the upcoming per-port vlan stats and vlan flag dumping.

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