]> git.puffer.fish Git - matthieu/frr.git/commit
staticd: merge NHT register & update, reorganize
authorDavid Lamparter <equinox@opensourcerouting.org>
Sun, 24 Apr 2022 15:10:52 +0000 (17:10 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Sun, 24 Apr 2022 15:19:47 +0000 (17:19 +0200)
commitf75d39259cbccc5888bd152db2b64786f3eaea1d
tree4856cbe54708cd78976df1951207bf1d0c9f919f
parentecb490350e5a7133fe3ac71eb7f0adc3ca1ec788
staticd: merge NHT register & update, reorganize

nh_update is only called in two places and both precede a matching
follow-up nht_register call.  Fold the update into register, and make
register do the right thing™ for all cases (i.e. update refcounts as
needed, and retry zebra NHT registration if it failed before).

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
staticd/static_routes.c
staticd/static_zebra.c
staticd/static_zebra.h