Skip to content

Commit

Permalink
selftests: forwarding: fix "ok" action test
Browse files Browse the repository at this point in the history
Fix the "ok" action test so it checks that packet that is okayed does not
continue to be processed by other rules. Fix error message as well.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Jiri Pirko authored and David S. Miller committed Mar 7, 2018
1 parent bb5441f commit 0c17db0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/testing/selftests/net/forwarding/tc_actions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ gact_drop_and_ok_test()
-t ip -q

tc_check_packets "dev $swp1 ingress" 101 1
check_err $? "Did not see trapped packet"
check_err $? "Did not see passed packet"

tc_check_packets "dev $swp1 ingress" 102 2
check_fail $? "Packet was dropped and it should not reach here"

tc filter del dev $swp1 ingress protocol ip pref 2 handle 102 flower
tc filter del dev $swp1 ingress protocol ip pref 1 handle 101 flower
Expand Down

0 comments on commit 0c17db0

Please sign in to comment.