summaryrefslogtreecommitdiffstats
path: root/include/linux/mroute.h
diff options
context:
space:
mode:
authorYotam Gigi2017-09-27 08:23:15 +0200
committerDavid S. Miller2017-09-27 20:33:27 +0200
commitc7c0bbeae9501a7e42f2fd306d6a6399aca688b6 (patch)
treeb528fc6bab7f090c1f38cc4562ef5db18b6ae6b7 /include/linux/mroute.h
parentipmr: Send FIB notifications on MFC and VIF entries (diff)
downloadkernel-qcow2-linux-c7c0bbeae9501a7e42f2fd306d6a6399aca688b6.tar.gz
kernel-qcow2-linux-c7c0bbeae9501a7e42f2fd306d6a6399aca688b6.tar.xz
kernel-qcow2-linux-c7c0bbeae9501a7e42f2fd306d6a6399aca688b6.zip
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>
Diffstat (limited to 'include/linux/mroute.h')
-rw-r--r--include/linux/mroute.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mroute.h b/include/linux/mroute.h
index 54c5cb82ddcb..5566580811ce 100644
--- a/include/linux/mroute.h
+++ b/include/linux/mroute.h
@@ -90,9 +90,11 @@ struct mr_table {
/* mfc_flags:
* MFC_STATIC - the entry was added statically (not by a routing daemon)
+ * MFC_OFFLOAD - the entry was offloaded to the hardware
*/
enum {
MFC_STATIC = BIT(0),
+ MFC_OFFLOAD = BIT(1),
};
struct mfc_cache_cmp_arg {