summaryrefslogtreecommitdiff
path: root/zebra/zebra_pbr.h
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2021-02-16 15:29:29 +0100
committerPhilippe Guibert <philippe.guibert@6wind.com>2021-03-04 11:50:25 +0100
commit5162e00045e1fe5ee4acd34d9e507e54f668e1e0 (patch)
treed6d9bd7306b822f2522105c5f6d503374d1a6809 /zebra/zebra_pbr.h
parentc103ac43dea8087e33e62dec69cee2d79e362ed5 (diff)
zebra: move iptable handling in zebra_dplane
The iptable processing was not handled in remote dataplane, and was directly processed by the thread in charge of zapi calls. Now that call can be handled in the zebra_dplane separate thread. once a zebra_dplane_ctx is allocated for iptable handling, the hook call is performed later. Subsequently, a return code may be triggered to zclient interface if any problem occurs when calling the hook call. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'zebra/zebra_pbr.h')
-rw-r--r--zebra/zebra_pbr.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/zebra/zebra_pbr.h b/zebra/zebra_pbr.h
index e7504a3547..1e025bab64 100644
--- a/zebra/zebra_pbr.h
+++ b/zebra/zebra_pbr.h
@@ -177,6 +177,7 @@ void zebra_pbr_del_ipset_entry(struct zebra_pbr_ipset_entry *ipset);
void zebra_pbr_add_iptable(struct zebra_pbr_iptable *iptable);
void zebra_pbr_del_iptable(struct zebra_pbr_iptable *iptable);
+void zebra_pbr_process_iptable(struct zebra_dplane_ctx *ctx);
/*
* Get to know existing PBR rules in the kernel - typically called at startup.
@@ -198,9 +199,6 @@ extern void kernel_pbr_ipset_entry_add_del_status(
struct zebra_pbr_ipset_entry *ipset,
enum zebra_dplane_status res);
-extern void kernel_pbr_iptable_add_del_status(struct zebra_pbr_iptable *iptable,
- enum zebra_dplane_status res);
-
/*
* Handle rule delete notification from kernel.
*/