]> git.baikalelectronics.ru Git - kernel.git/commit
ipmr: Add reference count to MFC entries
authorYotam Gigi <yotamg@mellanox.com>
Wed, 27 Sep 2017 06:23:12 +0000 (08:23 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Sep 2017 18:33:27 +0000 (11:33 -0700)
commit2b02b498c99f28f66cdceeca7ef361912e230d0f
tree337f6998d8c255d894a32b2f02c9b76682eb36a5
parent16fff73bd07581013d66f1db0a5c48b51546554b
ipmr: Add reference count to MFC entries

Next commits will introduce MFC notifications through the atomic
fib_notification chain, thus allowing modules to be aware of MFC entries.

Due to the fact that modules may need to hold a reference to an MFC entry,
add reference count to MFC entries to prevent them from being freed while
these modules use them.

The reference counting is done only on resolved MFC entries currently.

Signed-off-by: Yotam Gigi <yotamg@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/mroute.h
net/ipv4/ipmr.c