selftests: forwarding: couple of fixes
Subsystems (4)
cover selftests: forwarding: couple of fixes
From: Jiri Pirko <[email protected]>
Jiri Pirko (2):
selftests: forwarding: fix "ok" action test
selftests: forwarding: fix flags passed to first drop rule in
gact_drop_and_ok_test
tools/testing/selftests/net/forwarding/tc_actions.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
Signature · 1 line
2.14.3
PATCH 1/2 selftests: forwarding: fix "ok" action test
From: Jiri Pirko <[email protected]>
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.
--- tools/testing/selftests/net/forwarding/tc_actions.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
tools/testing/selftests/net/forwarding/tc_actions.sh +4 -1
@@ -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
Signature · 1 line
2.14.3
PATCH 2/2 selftests: forwarding: fix flags passed to first drop rule in gact_drop_and_ok_test
In reply to Jiri PirkoFrom: Jiri Pirko <[email protected]>
Fix copy&paste error and pass proper flags.
--- tools/testing/selftests/net/forwarding/tc_actions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/net/forwarding/tc_actions.sh +1 -1
@@ -81,7 +81,7 @@ gact_drop_and_ok_test() RET=0 tc filter add dev $swp1 ingress protocol ip pref 2 handle 102 flower \ - skip_hw dst_ip 192.0.2.2 action drop + $tcflags dst_ip 192.0.2.2 action drop $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \ -t ip -q
Signature · 1 line
2.14.3
Re: [patch net-next 1/2] selftests: forwarding: fix "ok" action test
In reply to Jiri PirkoFrom: Jiri Pirko <[email protected]>
Date: Wed, 7 Mar 2018 13:57:59 +0100
Quoted 7 lines
From: Jiri Pirko <[email protected]>
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 <[email protected]>Reviewed-by Ido Schimmel <[email protected]>
Applied.
Re: [patch net-next 2/2] selftests: forwarding: fix flags passed to first drop rule in gact_drop_and_ok_test
In reply to Jiri PirkoFrom: Jiri Pirko <[email protected]>
Date: Wed, 7 Mar 2018 13:58:00 +0100
Quoted 6 lines
From: Jiri Pirko <[email protected]>
Fix copy&paste error and pass proper flags.
Signed-off-by Jiri Pirko <[email protected]>Reviewed-by Ido Schimmel <[email protected]>
Applied.