summaryrefslogtreecommitdiff
path: root/zebra/zebra_rib.c
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2019-02-11 16:11:02 -0500
committerMark Stapp <mjs@voltanet.io>2019-02-11 16:11:02 -0500
commit8263d1d0d9fe50186fee8883dd5b6a1723e23720 (patch)
tree3e930fb485dae901fecfa7c2c06b051b484be804 /zebra/zebra_rib.c
parentb7777b57c48a08b50e77f85663067609808b408d (diff)
zebra: use update semantics for routes consistently
Use 'update' semantics for route updates, to ensure that netlink replace behavior works correctly. Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'zebra/zebra_rib.c')
-rw-r--r--zebra/zebra_rib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c
index dcc5a7acb0..8afcc2b685 100644
--- a/zebra/zebra_rib.c
+++ b/zebra/zebra_rib.c
@@ -1089,7 +1089,7 @@ void rib_install_kernel(struct route_node *rn, struct route_entry *re,
hook_call(rib_update, rn, "installing in kernel");
/* Send add or update */
- if (old && (old != re))
+ if (old)
ret = dplane_route_update(rn, re, old);
else
ret = dplane_route_add(rn, re);