]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: get and put tree reference counting
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Fri, 3 Nov 2017 23:05:23 +0000 (19:05 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 5 Nov 2017 13:31:38 +0000 (22:31 +0900)
commit7d3b23b1edc24a8bd36d5f39a5bd3b741c91e108
tree5fec65972b01cc9df6c7c84449e24968dbc11e55
parentd97493a6eb530fdaac0e42933da03d495d19a6cc
net: dsa: get and put tree reference counting

Provide convenient dsa_tree_get and dsa_tree_put functions scoping a DSA
tree used to increment and decrement its reference counter, instead of
poking directly its kref structure.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/dsa2.c