提交 0c17db05 编写于 作者: J Jiri Pirko 提交者: David S. Miller

selftests: forwarding: fix "ok" action test

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: NJiri Pirko <jiri@mellanox.com>
Reviewed-by: NIdo Schimmel <idosch@mellanox.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 bb5441fc
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册