ip6mr: Add refcounting to mfc
authorYuval Mintz <yuvalm@mellanox.com>
Mon, 26 Mar 2018 12:01:36 +0000 (15:01 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Mar 2018 17:14:43 +0000 (13:14 -0400)
commit8c13af2a219c6498071b30ea558438c74267ae4d
tree747dd0d7e4eb618fbacc0cbf27e7900d95618b75
parentd3c07e5b9939a055fa017f200e535ae947eb22ab
ip6mr: Add refcounting to mfc

Since ipmr and ip6mr are using the same mr_mfc struct at their core, we
can now refactor the ipmr_cache_{hold,put} logic and apply refcounting
to both ipmr and ip6mr.

Signed-off-by: Yuval Mintz <yuvalm@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
include/linux/mroute.h
include/linux/mroute_base.h
net/ipv4/ipmr.c
net/ipv6/ip6mr.c