summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_router.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2020-09-18 21:41:19 +0200
committerDonald Sharp <sharpd@nvidia.com>2020-09-22 21:57:43 +0200
commit4c56ce1cead5f6514ea2af34f0b7a07c35746520 (patch)
treeebe234f44fa0b766381b7a61d807be393a647931 /zebra/zebra_router.c
parentinclude: Update rtnetlink.h to latest kernel (diff)
downloadfrr-4c56ce1cead5f6514ea2af34f0b7a07c35746520.tar.xz
frr-4c56ce1cead5f6514ea2af34f0b7a07c35746520.zip
zebra: Add basic knowledge of asic offload available
Some linux kernels are starting to support the idea of knowledge about the underlying asic. Add a boolean that we can set/unset to track whether or not we think the router has this functionality available. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra/zebra_router.c')
-rw-r--r--zebra/zebra_router.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/zebra/zebra_router.c b/zebra/zebra_router.c
index 66f292455..fc4390f7f 100644
--- a/zebra/zebra_router.c
+++ b/zebra/zebra_router.c
@@ -290,4 +290,6 @@ void zebra_router_init(void)
zrouter.nhgs_id =
hash_create_size(8, zebra_nhg_id_key, zebra_nhg_hash_id_equal,
"Zebra Router Nexthop Groups ID index");
+
+ zrouter.asic_offloaded = false;
}