diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2022-04-24 17:10:52 +0200 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2022-04-24 17:19:47 +0200 |
| commit | f75d39259cbccc5888bd152db2b64786f3eaea1d (patch) | |
| tree | 4856cbe54708cd78976df1951207bf1d0c9f919f /staticd/static_zebra.h | |
| parent | ecb490350e5a7133fe3ac71eb7f0adc3ca1ec788 (diff) | |
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>
Diffstat (limited to 'staticd/static_zebra.h')
| -rw-r--r-- | staticd/static_zebra.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/staticd/static_zebra.h b/staticd/static_zebra.h index e30fa3fd57..1cf13dcbbb 100644 --- a/staticd/static_zebra.h +++ b/staticd/static_zebra.h @@ -33,7 +33,6 @@ extern void static_zebra_init(void); extern void static_zebra_stop(void); extern void static_zebra_vrf_register(struct vrf *vrf); extern void static_zebra_vrf_unregister(struct vrf *vrf); -extern int static_zebra_nh_update(struct static_nexthop *nh); #ifdef __cplusplus } |
