diff options
| author | Jakub Urbańczyk <xthaid@gmail.com> | 2020-07-15 15:11:21 +0200 |
|---|---|---|
| committer | Jakub Urbańczyk <xthaid@gmail.com> | 2020-08-10 21:32:59 +0200 |
| commit | fef24b03399d26808bd57af8e318b0e818c7ffef (patch) | |
| tree | 66b2cc5e6b679362653ae59d9bb3361090061070 /zebra/rt_netlink.c | |
| parent | 271ac28499e6be25a1c42b9ea138e782548893f6 (diff) | |
zebra: prepare dplane for batching
Extend kernel interface to allow the data plane to send many kernel
updates at once.
Signed-off-by: Jakub Urbańczyk <xthaid@gmail.com>
Diffstat (limited to 'zebra/rt_netlink.c')
| -rw-r--r-- | zebra/rt_netlink.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c index ea15de6bdb..70c34252f4 100644 --- a/zebra/rt_netlink.c +++ b/zebra/rt_netlink.c @@ -2352,19 +2352,6 @@ enum zebra_dplane_result kernel_route_update(struct zebra_dplane_ctx *ctx) } else ret = 0; - if ((cmd == RTM_NEWROUTE) && (ret == 0)) { - /* Update installed nexthops to signal which have been - * installed. - */ - for (ALL_NEXTHOPS_PTR(dplane_ctx_get_ng(ctx), nexthop)) { - if (CHECK_FLAG(nexthop->flags, NEXTHOP_FLAG_RECURSIVE)) - continue; - - if (CHECK_FLAG(nexthop->flags, NEXTHOP_FLAG_ACTIVE)) { - SET_FLAG(nexthop->flags, NEXTHOP_FLAG_FIB); - } - } - } return (ret == 0 ? ZEBRA_DPLANE_REQUEST_SUCCESS : ZEBRA_DPLANE_REQUEST_FAILURE); |
