diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2022-10-04 15:41:36 -0400 | 
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2022-12-12 10:44:57 -0500 | 
| commit | 45f0a10befd363590ed55a38d83f6edc3600e01b (patch) | |
| tree | 54bc06724a7c23a76630923753f371ef8af45a3d /zebra/zebra_dplane.h | |
| parent | f935122ebd7e8439cecc8c56ba72e8dde0d17815 (diff) | |
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/zebra_dplane.h')
| -rw-r--r-- | zebra/zebra_dplane.h | 10 | 
1 files changed, 10 insertions, 0 deletions
diff --git a/zebra/zebra_dplane.h b/zebra/zebra_dplane.h index e392861ae0..3efbc33fe0 100644 --- a/zebra/zebra_dplane.h +++ b/zebra/zebra_dplane.h @@ -1081,6 +1081,16 @@ void zebra_dplane_pre_finish(void);  void zebra_dplane_finish(void);  void zebra_dplane_shutdown(void); +/* + * decision point for sending a routing update through the old + * straight to zebra master pthread or through the dplane to + * the master pthread for handling + */ +void dplane_rib_add_multipath(afi_t afi, safi_t safi, struct prefix *p, +			      struct prefix_ipv6 *src_p, struct route_entry *re, +			      struct nexthop_group *ng, int startup, +			      struct zebra_dplane_ctx *ctx); +  #ifdef __cplusplus  }  #endif  | 
