summaryrefslogtreecommitdiffstats
path: root/zebra/rule_socket.c
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/rule_socket.c
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/rule_socket.c')
-rw-r--r--zebra/rule_socket.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/zebra/rule_socket.c b/zebra/rule_socket.c
index e2c650b4a..219fa7de6 100644
--- a/zebra/rule_socket.c
+++ b/zebra/rule_socket.c
@@ -57,4 +57,12 @@ enum zebra_dplane_result kernel_del_pbr_rule(struct zebra_pbr_rule *rule)
return ZEBRA_DPLANE_REQUEST_FAILURE;
}
+enum zebra_dplane_result kernel_update_pbr_rule(struct zebra_pbr_rule *old_rule,
+ struct zebra_pbr_rule *new_rule)
+{
+ flog_err(EC_LIB_UNAVAILABLE, "%s not Implemented for this platform",
+ __PRETTY_FUNCTION__);
+ return ZEBRA_DPLANE_REQUEST_FAILURE;
+}
+
#endif