Skip to content

Commit

Permalink
zebra: unlock fpm pic usage for all kind of nexthops
Browse files Browse the repository at this point in the history
Do permit usage of fpm nexthop pic for all kinds of nexthops.

Signed-off-by: Philippe Guibert <[email protected]>
  • Loading branch information
pguibert6WIND committed Jan 7, 2025
1 parent 70ffab9 commit d394228
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions zebra/zebra_nhg.c
Original file line number Diff line number Diff line change
Expand Up @@ -701,8 +701,12 @@ static bool zebra_need_to_create_pic(struct nexthop *nh)
{
if (!fpm_pic_nexthop)
return false;
if (nh && nh->nh_srv6 && nh->nh_srv6->seg6_segs && !sid_zero(nh->nh_srv6->seg6_segs))
return true;
if (nh) {
if (nh->nh_srv6 && nh->nh_srv6->seg6_segs && !sid_zero(nh->nh_srv6->seg6_segs))
return true;
if (nh->nh_label)
return true;
}
return false;
}

Expand Down

0 comments on commit d394228

Please sign in to comment.