ipmr, ip6mr: Unite mfc seq logic
authorYuval Mintz <yuvalm@mellanox.com>
Wed, 28 Feb 2018 21:29:36 +0000 (23:29 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Mar 2018 18:13:23 +0000 (13:13 -0500)
commitc8d6196803265484f7e1cdd1b00a188dc59a5988
tree268700786a50db78ae60ba4bdbe34bb9d6c4069f
parent845c9a7ae7f5342ba42280c3a2f2aa92bce641d7
ipmr, ip6mr: Unite mfc seq logic

With the exception of the final dump, ipmr and ip6mr have the exact same
seq logic for traversing a given mr_table. Refactor that code and make
it common.

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