]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipmr: Add MFC offload indication
authorYotam Gigi <yotamg@mellanox.com>
Wed, 27 Sep 2017 06:23:15 +0000 (08:23 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Sep 2017 18:33:27 +0000 (11:33 -0700)
commitcfb69d497c91e0b3813fc7aae212273ca8e033a2
treeb528fc6bab7f090c1f38cc4562ef5db18b6ae6b7
parent66dd519c02cae0c886fe40579c4d53dd5949dc4d
net: ipmr: Add MFC offload indication

Allow drivers, registered to the fib notification chain indicate whether a
multicast MFC route is offloaded or not, similarly to unicast routes. The
indication of whether a route is offloaded is done using the mfc_flags
field on an mfc_cache struct, and the information is sent to the userspace
via the RTNetlink interface only.

Currently, MFC routes are either offloaded or not, thus there is no need to
add per-VIF offload indication.

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