diff options
| author | Stephen Worley <sworley@cumulusnetworks.com> | 2019-05-14 15:27:40 -0700 |
|---|---|---|
| committer | Stephen Worley <sworley@cumulusnetworks.com> | 2019-10-25 11:13:40 -0400 |
| commit | 98cda54a9543ea125e5e1eea6621c453f407edb2 (patch) | |
| tree | 39d132983b105b883c40fe2d07a6c7a55b36eefe /zebra/rt_netlink.c | |
| parent | 1c3d2890408e05f60b4864a93a1dff0c23ab346c (diff) | |
zebra: Add recursive functionality to NHE's
Add the ability to recursively resolve nexthop group hash entries
and resolve them when sending to the kernel.
When copying over nexthops into an NHE, copy resolved info as well.
Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
Diffstat (limited to 'zebra/rt_netlink.c')
| -rw-r--r-- | zebra/rt_netlink.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c index 5d2d407688..89fed59f76 100644 --- a/zebra/rt_netlink.c +++ b/zebra/rt_netlink.c @@ -2025,7 +2025,8 @@ static int netlink_nexthop(int cmd, struct zebra_dplane_ctx *ctx) */ enum zebra_dplane_result kernel_nexthop_update(struct zebra_dplane_ctx *ctx) { - int cmd, ret = 0; + int cmd = 0; + int ret = 0; switch (dplane_ctx_get_op(ctx)) { case DPLANE_OP_NH_DELETE: |
