ipmr, ip6mr: Unite logic for searching in MFC cache
authorYuval Mintz <yuvalm@mellanox.com>
Wed, 28 Feb 2018 21:29:35 +0000 (23:29 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Mar 2018 18:13:23 +0000 (13:13 -0500)
commit845c9a7ae7f5342ba42280c3a2f2aa92bce641d7
tree7fea1a929b16c9a216b7d0ccd78e389a01db1a39
parent494fff56379c4ad5b8fe36a5b7ffede4044ca7bb
ipmr, ip6mr: Unite logic for searching in MFC cache

ipmr and ip6mr utilize the exact same methods for searching the
hashed resolved connections, difference being only in the construction
of the hash comparison key.

In order to unite the flow, introduce an mr_table operation set that
would contain the protocol specific information required for common
flows, in this case - the hash parameters and a comparison key
representing a (*,*) route.

Signed-off-by: Yuval Mintz <yuvalm@mellanox.com>
Acked-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/mroute_base.h
net/ipv4/ipmr.c
net/ipv4/ipmr_base.c
net/ipv6/ip6mr.c