summaryrefslogtreecommitdiff
path: root/zebra/rt_netlink.c
diff options
context:
space:
mode:
authorStephen Worley <sworley@cumulusnetworks.com>2019-05-14 15:27:40 -0700
committerStephen Worley <sworley@cumulusnetworks.com>2019-10-25 11:13:40 -0400
commit98cda54a9543ea125e5e1eea6621c453f407edb2 (patch)
tree39d132983b105b883c40fe2d07a6c7a55b36eefe /zebra/rt_netlink.c
parent1c3d2890408e05f60b4864a93a1dff0c23ab346c (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.c3
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: