]> 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)
commit65eb3249cd9001f5b0c7b4c92cf75d47156d8591
treed64c9c33bfe497603b19af002d9c92583c3c5659
parentfe534f8198d0c331f0ccaac01ac79eb73339f004
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