aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/l3xc
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2021-10-08 17:17:19 +0200
committerBenoît Ganne <bganne@cisco.com>2021-10-11 14:14:26 +0200
commit6958c23bd54f38599de63854330020b46cbd24a9 (patch)
tree2c512e3d56ca3d3b9b0965781021eef37f8b7f37 /src/plugins/l3xc
parent275bd796346c3b1618170f4eda36b9a41ade9c87 (diff)
l3xc: skip load balancing if not multipath
Type: improvement Change-Id: I3d8e1c7a83530bbc4b1751358ad7d034476ff13f Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src/plugins/l3xc')
-rw-r--r--src/plugins/l3xc/l3xc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/l3xc/l3xc.c b/src/plugins/l3xc/l3xc.c
index ac0e4cf0d2c..021a850d7d0 100644
--- a/src/plugins/l3xc/l3xc.c
+++ b/src/plugins/l3xc/l3xc.c
@@ -67,11 +67,11 @@ l3xc_stack (l3xc_t * l3xc)
*/
dpo_id_t via_dpo = DPO_INVALID;
- fib_path_list_contribute_forwarding (l3xc->l3xc_pl,
- (FIB_PROTOCOL_IP4 == l3xc->l3xc_proto ?
- FIB_FORW_CHAIN_TYPE_UNICAST_IP4 :
- FIB_FORW_CHAIN_TYPE_UNICAST_IP6),
- FIB_PATH_LIST_FWD_FLAG_NONE, &via_dpo);
+ fib_path_list_contribute_forwarding (
+ l3xc->l3xc_pl,
+ (FIB_PROTOCOL_IP4 == l3xc->l3xc_proto ? FIB_FORW_CHAIN_TYPE_UNICAST_IP4 :
+ FIB_FORW_CHAIN_TYPE_UNICAST_IP6),
+ FIB_PATH_LIST_FWD_FLAG_COLLAPSE, &via_dpo);
dpo_stack_from_node ((FIB_PROTOCOL_IP4 == l3xc->l3xc_proto ?
l3xc_ip4_node.index :