@@ -2437,6 +2437,9 @@ ipv4_mpath_list_test()
2437
2437
run_cmd " ip -n ns2 route add 203.0.113.0/24
2438
2438
nexthop via 172.16.201.2 nexthop via 172.16.202.2"
2439
2439
run_cmd " ip netns exec ns2 sysctl -qw net.ipv4.fib_multipath_hash_policy=1"
2440
+ run_cmd " ip netns exec ns2 sysctl -qw net.ipv4.conf.veth2.rp_filter=0"
2441
+ run_cmd " ip netns exec ns2 sysctl -qw net.ipv4.conf.all.rp_filter=0"
2442
+ run_cmd " ip netns exec ns2 sysctl -qw net.ipv4.conf.default.rp_filter=0"
2440
2443
set +e
2441
2444
2442
2445
local dmac=$( ip -n ns2 -j link show dev veth2 | jq -r ' .[]["address"]' )
@@ -2449,7 +2452,7 @@ ipv4_mpath_list_test()
2449
2452
# words, the FIB lookup tracepoint needs to be triggered for every
2450
2453
# packet.
2451
2454
local t0_rx_pkts=$( link_stats_get ns2 veth2 rx packets)
2452
- run_cmd " perf stat -e fib:fib_table_lookup --filter 'err == 0' -j -o $tmp_file -- $cmd "
2455
+ run_cmd " perf stat -a - e fib:fib_table_lookup --filter 'err == 0' -j -o $tmp_file -- $cmd "
2453
2456
local t1_rx_pkts=$( link_stats_get ns2 veth2 rx packets)
2454
2457
local diff=$( echo $t1_rx_pkts - $t0_rx_pkts | bc -l)
2455
2458
list_rcv_eval $tmp_file $diff
@@ -2494,7 +2497,7 @@ ipv6_mpath_list_test()
2494
2497
# words, the FIB lookup tracepoint needs to be triggered for every
2495
2498
# packet.
2496
2499
local t0_rx_pkts=$( link_stats_get ns2 veth2 rx packets)
2497
- run_cmd " perf stat -e fib6:fib6_table_lookup --filter 'err == 0' -j -o $tmp_file -- $cmd "
2500
+ run_cmd " perf stat -a - e fib6:fib6_table_lookup --filter 'err == 0' -j -o $tmp_file -- $cmd "
2498
2501
local t1_rx_pkts=$( link_stats_get ns2 veth2 rx packets)
2499
2502
local diff=$( echo $t1_rx_pkts - $t0_rx_pkts | bc -l)
2500
2503
list_rcv_eval $tmp_file $diff
0 commit comments