]> 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)
commitf5ca1b3472c400e957ab3d3818c77d45d79838c9
treec5b3a92c95ed6cf8c262f9c0f4ea92e7ccf3b73d
parentb6f107b2154d91e2500b155fd78753e3f4f031ac
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