From e1536fce85b765cdc55993fc1635e030f1952fe2 Mon Sep 17 00:00:00 2001 From: Stephen Worley Date: Wed, 6 Mar 2019 13:42:05 -0500 Subject: [PATCH] zebra: Add debug statement for nexthop netlink messages Add the zebra kernel debug statement for nexthop messages so we can see them via vtysh. Signed-off-by: Stephen Worley --- zebra/rt_netlink.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c index fd2054686e..cb29a99d6f 100644 --- a/zebra/rt_netlink.c +++ b/zebra/rt_netlink.c @@ -1861,8 +1861,6 @@ int kernel_get_ipmr_sg_stats(struct zebra_vrf *zvrf, void *in) */ static int netlink_nexthop(int cmd, struct zebra_dplane_ctx *ctx) { - int ret = 0; - struct { struct nlmsghdr n; struct nhmsg nhm; @@ -1944,10 +1942,7 @@ static int netlink_nexthop(int cmd, struct zebra_dplane_ctx *ctx) return -1; } - - if (ret) { - zlog_debug("Something failed with inserting nhg into kernel"); - } + _netlink_nexthop_debug(cmd, nhe->id); return netlink_talk_info(netlink_talk_filter, &req.n, dplane_ctx_get_ns(ctx), 0);