Skip to content

Commit

Permalink
selftests: forwarding: mirror_gre_vlan_bridge_1q: Rename two tests
Browse files Browse the repository at this point in the history
Rename test_gretap_forbidden() and test_ip6gretap_forbidden() to a more
specific test_gretap_forbidden_cpu() and test_ip6gretap_forbidden_cpu().
This will make it clearer which is which when further down a patch is
introduced that forbids a VLAN on regular bridge port.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Petr Machata authored and David S. Miller committed Jun 1, 2018
1 parent a6f3282 commit 6836801
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
ALL_TESTS="
test_gretap
test_ip6gretap
test_gretap_forbidden
test_ip6gretap_forbidden
test_gretap_forbidden_cpu
test_ip6gretap_forbidden_cpu
"

NUM_NETIFS=6
Expand Down Expand Up @@ -77,7 +77,7 @@ test_ip6gretap()
test_vlan_match gt6 'vlan_id 555 vlan_ethtype ipv6' "mirror to ip6gretap"
}

test_span_gre_forbidden()
test_span_gre_forbidden_cpu()
{
local tundev=$1; shift
local what=$1; shift
Expand All @@ -102,14 +102,14 @@ test_span_gre_forbidden()
log_test "$what: vlan forbidden at a bridge ($tcflags)"
}

test_gretap_forbidden()
test_gretap_forbidden_cpu()
{
test_span_gre_forbidden gt4 "mirror to gretap"
test_span_gre_forbidden_cpu gt4 "mirror to gretap"
}

test_ip6gretap_forbidden()
test_ip6gretap_forbidden_cpu()
{
test_span_gre_forbidden gt6 "mirror to ip6gretap"
test_span_gre_forbidden_cpu gt6 "mirror to ip6gretap"
}

test_all()
Expand Down

0 comments on commit 6836801

Please sign in to comment.