summaryrefslogtreecommitdiff
path: root/zebra/zapi_msg.c
diff options
context:
space:
mode:
authorStephen Worley <sworley@cumulusnetworks.com>2020-06-10 12:35:36 -0400
committerGitHub <noreply@github.com>2020-06-10 12:35:36 -0400
commit5e0494b38a53e5a3501088efb4b48b2cbb7a080f (patch)
treef5e18ed8e373fbbcd8e58f47fdbe1d428c59b6f9 /zebra/zapi_msg.c
parentb71ca5ae42878fffa387cad0ab9af4782e3bcd44 (diff)
parent99e387d5836307525e6afddc7ea3b93355a92af5 (diff)
Merge pull request #6465 from xThaid/iprules
zebra: move ip rule installation to use dplane thread
Diffstat (limited to 'zebra/zapi_msg.c')
-rw-r--r--zebra/zapi_msg.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/zebra/zapi_msg.c b/zebra/zapi_msg.c
index cea8edf752..a40aa8b643 100644
--- a/zebra/zapi_msg.c
+++ b/zebra/zapi_msg.c
@@ -785,7 +785,7 @@ int zsend_route_notify_owner_ctx(const struct zebra_dplane_ctx *ctx,
note));
}
-void zsend_rule_notify_owner(struct zebra_pbr_rule *rule,
+void zsend_rule_notify_owner(const struct zebra_dplane_ctx *ctx,
enum zapi_rule_notify_owner note)
{
struct listnode *node;
@@ -793,10 +793,11 @@ void zsend_rule_notify_owner(struct zebra_pbr_rule *rule,
struct stream *s;
if (IS_ZEBRA_DEBUG_PACKET)
- zlog_debug("%s: Notifying %u", __func__, rule->rule.unique);
+ zlog_debug("%s: Notifying %u", __func__,
+ dplane_ctx_rule_get_unique(ctx));
for (ALL_LIST_ELEMENTS_RO(zrouter.client_list, node, client)) {
- if (rule->sock == client->sock)
+ if (dplane_ctx_rule_get_sock(ctx) == client->sock)
break;
}
@@ -807,10 +808,10 @@ void zsend_rule_notify_owner(struct zebra_pbr_rule *rule,
zclient_create_header(s, ZEBRA_RULE_NOTIFY_OWNER, VRF_DEFAULT);
stream_put(s, &note, sizeof(note));
- stream_putl(s, rule->rule.seq);
- stream_putl(s, rule->rule.priority);
- stream_putl(s, rule->rule.unique);
- stream_putl(s, rule->rule.ifindex);
+ stream_putl(s, dplane_ctx_rule_get_seq(ctx));
+ stream_putl(s, dplane_ctx_rule_get_priority(ctx));
+ stream_putl(s, dplane_ctx_rule_get_unique(ctx));
+ stream_putl(s, dplane_ctx_get_ifindex(ctx));
stream_putw_at(s, 0, stream_get_endp(s));