From 3ae327cb966d8e982a9d94fd47fad636444e8a31 Mon Sep 17 00:00:00 2001 From: Stephen Worley Date: Thu, 19 Dec 2019 17:11:26 -0500 Subject: 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 --- zebra/rule_socket.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'zebra/rule_socket.c') 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 -- cgit v1.2.3