]> git.baikalelectronics.ru Git - kernel.git/commit
bridge: vlan: use br_vlan_(get|put)_master to deal with refcounts
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Fri, 2 Oct 2015 13:05:11 +0000 (15:05 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 4 Oct 2015 23:43:48 +0000 (16:43 -0700)
commit0311765991067fd2aad934d765e9c85791f127b4
treedb83a19d5ba3be7767076070dc8ee6b6650fab4a
parent970dd378ac945171ffb3b8a93140df4ced216bde
bridge: vlan: use br_vlan_(get|put)_master to deal with refcounts

Introduce br_vlan_(get|put)_master which take a reference (or create the
master vlan first if it didn't exist) and drop a reference respectively.

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