]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit27c773f07a9dab7764ff850745567b9f82a08679
tree7fea1a929b16c9a216b7d0ccd78e389a01db1a39
parentaabb5d194a070322cc1f3501a3b1bb3a72743d84
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