summaryrefslogtreecommitdiff
path: root/zebra/zebra_router.c
diff options
context:
space:
mode:
authorStephen Worley <sworley@nvidia.com>2022-11-22 12:02:15 -0500
committerGitHub <noreply@github.com>2022-11-22 12:02:15 -0500
commitf5a6f8202d179a904256d46cdaf7fe4d26d11661 (patch)
treeaae05b025fb9c4d32cedcb7c05787962fb266ffb /zebra/zebra_router.c
parentc8b92cd80adcd566294f6d018204510adf09fd08 (diff)
parentf2ae263bb70b76274e7df9cd0fe5472f0597bf3c (diff)
Merge pull request #11908 from sigeryang/tc-state-mgmt
zebra: traffic control state management & ZAPI
Diffstat (limited to 'zebra/zebra_router.c')
-rw-r--r--zebra/zebra_router.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/zebra/zebra_router.c b/zebra/zebra_router.c
index c66849863e..b8923ef57d 100644
--- a/zebra/zebra_router.c
+++ b/zebra/zebra_router.c
@@ -30,6 +30,7 @@
#include "zebra_mlag.h"
#include "zebra_nhg.h"
#include "zebra_neigh.h"
+#include "zebra/zebra_tc.h"
#include "debug.h"
#include "zebra_script.h"
@@ -312,6 +313,20 @@ void zebra_router_init(bool asic_offload, bool notify_on_ack)
hash_create_size(8, zebra_nhg_id_key, zebra_nhg_hash_id_equal,
"Zebra Router Nexthop Groups ID index");
+ zrouter.rules_hash =
+ hash_create_size(8, zebra_pbr_rules_hash_key,
+ zebra_pbr_rules_hash_equal, "Rules Hash");
+
+ zrouter.qdisc_hash =
+ hash_create_size(8, zebra_tc_qdisc_hash_key,
+ zebra_tc_qdisc_hash_equal, "TC (qdisc) Hash");
+ zrouter.class_hash = hash_create_size(8, zebra_tc_class_hash_key,
+ zebra_tc_class_hash_equal,
+ "TC (classes) Hash");
+ zrouter.filter_hash = hash_create_size(8, zebra_tc_filter_hash_key,
+ zebra_tc_filter_hash_equal,
+ "TC (filter) Hash");
+
zrouter.asic_offloaded = asic_offload;
zrouter.notify_on_ack = notify_on_ack;