]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: ipmr: Add the parent ID field to VIF struct
authorYotam Gigi <yotamg@mellanox.com>
Tue, 3 Oct 2017 07:58:07 +0000 (09:58 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Oct 2017 17:06:30 +0000 (10:06 -0700)
commit3032b1ec0101a0d18c4ee4c3764638824bca31d4
treed64c9c33bfe497603b19af002d9c92583c3c5659
parentd076c99bef42e4588e7e4d5f007ff38c7ab50936
ipv4: ipmr: Add the parent ID field to VIF struct

In order to allow the ipmr module to do partial multicast forwarding
according to the device parent ID, add the device parent ID field to the
VIF struct. This way, the forwarding path can use the parent ID field
without invoking switchdev calls, which requires the RTNL lock.

When a new VIF is added, set the device parent ID field in it by invoking
the switchdev_port_attr_get call.

Signed-off-by: Yotam Gigi <yotamg@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/mroute.h
net/ipv4/ipmr.c