summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_pbr.h
diff options
context:
space:
mode:
authorStephen Worley <sworley@cumulusnetworks.com>2019-12-19 23:11:26 +0100
committerStephen Worley <sworley@cumulusnetworks.com>2020-04-09 19:37:55 +0200
commit3ae327cb966d8e982a9d94fd47fad636444e8a31 (patch)
treec5bf7e257ca854f60614ca37d8c629b56aeb5d57 /zebra/zebra_pbr.h
parentMerge pull request #6124 from kuldeepkash/bgp_basic_functionality (diff)
downloadfrr-3ae327cb966d8e982a9d94fd47fad636444e8a31.tar.xz
frr-3ae327cb966d8e982a9d94fd47fad636444e8a31.zip
zebra: define some explicit rule replace code paths
Define some explicit rule replace code paths into the dataplane code and improve the handling around it/releasing the the old rule from the hash table. Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_pbr.h')
-rw-r--r--zebra/zebra_pbr.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/zebra/zebra_pbr.h b/zebra/zebra_pbr.h
index b7fbc9b7d..83797b952 100644
--- a/zebra/zebra_pbr.h
+++ b/zebra/zebra_pbr.h
@@ -183,6 +183,13 @@ extern enum zebra_dplane_result kernel_add_pbr_rule(struct zebra_pbr_rule *rule)
extern enum zebra_dplane_result kernel_del_pbr_rule(struct zebra_pbr_rule *rule);
/*
+ * Update specified rule for a specific interface.
+ */
+extern enum zebra_dplane_result
+kernel_update_pbr_rule(struct zebra_pbr_rule *old_rule,
+ struct zebra_pbr_rule *new_rule);
+
+/*
* Get to know existing PBR rules in the kernel - typically called at startup.
*/
extern void kernel_read_pbr_rules(struct zebra_ns *zns);