]> git.puffer.fish Git - mirror/frr.git/commit
zebra: set zd_is_update in 1 spot
authorDonald Sharp <sharpd@nvidia.com>
Wed, 10 Nov 2021 20:09:37 +0000 (15:09 -0500)
committermergify-bot <noreply@mergify.com>
Mon, 7 Feb 2022 20:46:23 +0000 (20:46 +0000)
commitcc21b0a79c345e640f168b3649da24ed3f69c6a6
tree6bea101be6bd86e0e6bbbc3459026a967aba4452
parent728db22475f81a36da365225c172d9ca3baf88ba
zebra: set zd_is_update in 1 spot

The ctx->zd_is_update is being set in various
spots based upon the same value that we are
passing into dplane_ctx_ns_init.  Let's just
consolidate all this into the dplane_ctx_ns_init
so that the zd_is_udpate value is set at the
same time that we increment the sequence numbers
to use.

As a note for future me's reading this.  The sequence
number choosen for the seq number passed to the
kernel is that each context gets a copy of the
appropriate nlsock to use.  Since it's a copy
at a point in time, we know we have a unique sequence
number value.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
(cherry picked from commit e3ee55d4bde5de9d39a91b53b30f67a6e45bbdb8)
zebra/zebra_dplane.c