ipmr,ipmr6: Define a uniform vif_device
authorYuval Mintz <yuvalm@mellanox.com>
Wed, 28 Feb 2018 21:29:29 +0000 (23:29 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Mar 2018 18:13:23 +0000 (13:13 -0500)
commit6853f21f764b04e58df5e44629fec1fb8f3cbf2e
treec5b3a92c95ed6cf8c262f9c0f4ea92e7ccf3b73d
parenta25724b05af0e38232764fc0d0f984254e4b5c41
ipmr,ipmr6: Define a uniform vif_device

The two implementations have almost identical structures - vif_device and
mif_device. As a step toward uniforming the mr_tables, eliminate the
mif_device and relocate the vif_device definition into a new common
header file.

Also, introduce a common initializing function for setting most of the
vif_device fields in a new common source file. This requires modifying
the ipv{4,6] Kconfig and ipv4 makefile as we're introducing a new common
config option - CONFIG_IP_MROUTE_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.h
include/linux/mroute6.h
include/linux/mroute_base.h [new file with mode: 0644]
net/ipv4/Kconfig
net/ipv4/Makefile
net/ipv4/ipmr.c
net/ipv4/ipmr_base.c [new file with mode: 0644]
net/ipv6/Kconfig
net/ipv6/ip6mr.c