]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfe1ce307910507dc95ca45dddec6b18e68bc696e
treec5b3a92c95ed6cf8c262f9c0f4ea92e7ccf3b73d
parentba6e52030d521561aaa84bd5755dcce59683e87a
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