Skip to content

Commit

Permalink
Merge pull request #17166 from anlancs/zebra/review-remove-one
Browse files Browse the repository at this point in the history
zebra: remove useless code
  • Loading branch information
riw777 authored Oct 22, 2024
2 parents df0dd1b + 5829fea commit 3152f49
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions zebra/zebra_rib.c
Original file line number Diff line number Diff line change
Expand Up @@ -640,20 +640,16 @@ void rib_install_kernel(struct route_node *rn, struct route_entry *re,
struct nexthop *nexthop;
struct rib_table_info *info = srcdest_rnode_table_info(rn);
struct zebra_vrf *zvrf = zebra_vrf_lookup_by_id(re->vrf_id);
const struct prefix *p, *src_p;
enum zebra_dplane_result ret;

rib_dest_t *dest = rib_dest_from_rnode(rn);

srcdest_rnode_prefixes(rn, &p, &src_p);

if (info->safi != SAFI_UNICAST) {
for (ALL_NEXTHOPS(re->nhe->nhg, nexthop))
SET_FLAG(nexthop->flags, NEXTHOP_FLAG_FIB);
return;
}


/*
* Install the resolved nexthop object first.
*/
Expand Down Expand Up @@ -1339,7 +1335,6 @@ static void rib_process(struct route_node *rn)
if (CHECK_FLAG(re->status, ROUTE_ENTRY_CHANGED)) {
proto_re_changed = re;
if (!nexthop_active_update(rn, re, old_fib)) {
const struct prefix *p;
struct rib_table_info *info;

if (re->type == ZEBRA_ROUTE_TABLE) {
Expand Down Expand Up @@ -1373,7 +1368,6 @@ static void rib_process(struct route_node *rn)
}

info = srcdest_rnode_table_info(rn);
srcdest_rnode_prefixes(rn, &p, NULL);
zsend_route_notify_owner(
rn, re, ZAPI_ROUTE_FAIL_INSTALL,
info->afi, info->safi);
Expand Down

0 comments on commit 3152f49

Please sign in to comment.