mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 07:00:48 +00:00
selftests: forwarding: fix error message in learning_test
When packets are not received, they aren't received on $host1_if, so the message talking about the second host not receiving them is incorrect. Fix it. Fixes: d4deb01467ec ("selftests: forwarding: Add a test for FDB learning") Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Reviewed-by: Ido Schimmel <idosch@nvidia.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
parent
1a635d3e1c
commit
83844aacab
@ -1251,7 +1251,7 @@ learning_test()
|
|||||||
tc -j -s filter show dev $host1_if ingress \
|
tc -j -s filter show dev $host1_if ingress \
|
||||||
| jq -e ".[] | select(.options.handle == 101) \
|
| jq -e ".[] | select(.options.handle == 101) \
|
||||||
| select(.options.actions[0].stats.packets == 1)" &> /dev/null
|
| select(.options.actions[0].stats.packets == 1)" &> /dev/null
|
||||||
check_fail $? "Packet reached second host when should not"
|
check_fail $? "Packet reached first host when should not"
|
||||||
|
|
||||||
$MZ $host1_if -c 1 -p 64 -a $mac -t ip -q
|
$MZ $host1_if -c 1 -p 64 -a $mac -t ip -q
|
||||||
sleep 1
|
sleep 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user