diff options
author | Donald Sharp <sharpd@nvidia.com> | 2022-10-04 21:41:36 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2022-12-12 16:44:57 +0100 |
commit | 45f0a10befd363590ed55a38d83f6edc3600e01b (patch) | |
tree | 54bc06724a7c23a76630923753f371ef8af45a3d /zebra/rt_netlink.h | |
parent | zebra: Rearrange dplane_ctx_route_init (diff) | |
download | frr-45f0a10befd363590ed55a38d83f6edc3600e01b.tar.xz frr-45f0a10befd363590ed55a38d83f6edc3600e01b.zip |
zebra: Add ctx to netlink message parsing
Add the initial step of passing in a dplane context
to reading route netlink messages. This code
will be run in two contexts:
a) The normal pthread for reading netlink messages from
the kernel
b) The dplane_fpm_nl pthread.
The goal of this commit is too just allow a) to work
b) will be filled in in the future. Effectively
everything should still be working as it should
pre this change. We will just possibly allow
the passing of the context around( but not used )
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra/rt_netlink.h')
-rw-r--r-- | zebra/rt_netlink.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/zebra/rt_netlink.h b/zebra/rt_netlink.h index b1af4b20e..fd2b79a2b 100644 --- a/zebra/rt_netlink.h +++ b/zebra/rt_netlink.h @@ -122,6 +122,10 @@ netlink_put_lsp_update_msg(struct nl_batch *bth, struct zebra_dplane_ctx *ctx); extern enum netlink_msg_status netlink_put_pw_update_msg(struct nl_batch *bth, struct zebra_dplane_ctx *ctx); +int netlink_route_change_read_unicast_internal(struct nlmsghdr *h, + ns_id_t ns_id, int startup, + struct zebra_dplane_ctx *ctx); + #ifdef NETLINK_DEBUG const char *nlmsg_type2str(uint16_t type); const char *af_type2str(int type); |