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_socket.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_socket.c')
| -rw-r--r-- | zebra/rt_socket.c | 14 | 
1 files changed, 0 insertions, 14 deletions
diff --git a/zebra/rt_socket.c b/zebra/rt_socket.c index 0271dc7f41..a2e15cbd2b 100644 --- a/zebra/rt_socket.c +++ b/zebra/rt_socket.c @@ -358,20 +358,6 @@ enum zebra_dplane_result kernel_route_update(struct zebra_dplane_ctx *ctx)  		}  	} /* Elevated privs */ -	if (RSYSTEM_ROUTE(type) -	    && dplane_ctx_get_op(ctx) != DPLANE_OP_ROUTE_DELETE) { -		struct nexthop *nexthop; - -		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 res;  }  | 
