Skip to content

Commit c4bbb5b

Browse files
bgpd: backpressure - fix ret value evpn_route_select_install
The return value of evpn_route_select_install is ignored in all cases except during vni route table install/uninstall and based on the returned value, an error is logged. Fixing this. Ticket :#3992392 Signed-off-by: Rajasekar Raja <rajasekarr@nvidia.com>
1 parent 7d08b29 commit c4bbb5b

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

bgpd/bgp_evpn.c

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1490,11 +1490,12 @@ int evpn_route_select_install(struct bgp *bgp, struct bgpevpn *vpn,
14901490
&& !bgp_addpath_is_addpath_used(&bgp->tx_addpath, afi, safi)) {
14911491
if (bgp_zebra_has_route_changed(old_select)) {
14921492
if (CHECK_FLAG(bgp->flags, BGP_FLAG_DELETE_IN_PROGRESS))
1493-
evpn_zebra_install(bgp, vpn,
1494-
(const struct prefix_evpn *)
1495-
bgp_dest_get_prefix(
1496-
dest),
1497-
old_select);
1493+
ret = evpn_zebra_install(bgp, vpn,
1494+
(const struct prefix_evpn
1495+
*)
1496+
bgp_dest_get_prefix(
1497+
dest),
1498+
old_select);
14981499
else
14991500
bgp_zebra_route_install(dest, old_select, bgp,
15001501
true, vpn, false);
@@ -1532,10 +1533,11 @@ int evpn_route_select_install(struct bgp *bgp, struct bgpevpn *vpn,
15321533
&& (new_select->sub_type == BGP_ROUTE_IMPORTED ||
15331534
bgp_evpn_attr_is_sync(new_select->attr))) {
15341535
if (CHECK_FLAG(bgp->flags, BGP_FLAG_DELETE_IN_PROGRESS))
1535-
evpn_zebra_install(bgp, vpn,
1536-
(const struct prefix_evpn *)
1537-
bgp_dest_get_prefix(dest),
1538-
new_select);
1536+
ret = evpn_zebra_install(bgp, vpn,
1537+
(const struct prefix_evpn *)
1538+
bgp_dest_get_prefix(
1539+
dest),
1540+
new_select);
15391541
else
15401542
bgp_zebra_route_install(dest, new_select, bgp, true,
15411543
vpn, false);
@@ -1559,11 +1561,12 @@ int evpn_route_select_install(struct bgp *bgp, struct bgpevpn *vpn,
15591561
old_select->sub_type == BGP_ROUTE_IMPORTED) {
15601562
if (CHECK_FLAG(bgp->flags, BGP_FLAG_DELETE_IN_PROGRESS) ||
15611563
CHECK_FLAG(bgp->flags, BGP_FLAG_VNI_DOWN))
1562-
evpn_zebra_uninstall(bgp, vpn,
1563-
(const struct prefix_evpn *)
1564-
bgp_dest_get_prefix(
1565-
dest),
1566-
old_select, false);
1564+
ret = evpn_zebra_uninstall(bgp, vpn,
1565+
(const struct prefix_evpn
1566+
*)
1567+
bgp_dest_get_prefix(
1568+
dest),
1569+
old_select, false);
15671570
else
15681571
bgp_zebra_route_install(dest, old_select, bgp,
15691572
false, vpn, false);

0 commit comments

Comments
 (0)