mirror of https://gitee.com/openkylin/linux.git
selftests: forwarding: mirror_gre_bridge_1d_vlan: Add STP test
To test offloading of mirror-to-gretap in mlxsw for cases that a VLAN-unaware bridge is in underlay packet path, test that the STP status of bridge egress port is reflected. Signed-off-by: Petr Machata <petrm@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
9c7c8a8244
commit
b5b029399f
|
@ -11,6 +11,8 @@
|
||||||
ALL_TESTS="
|
ALL_TESTS="
|
||||||
test_gretap
|
test_gretap
|
||||||
test_ip6gretap
|
test_ip6gretap
|
||||||
|
test_gretap_stp
|
||||||
|
test_ip6gretap_stp
|
||||||
"
|
"
|
||||||
|
|
||||||
NUM_NETIFS=6
|
NUM_NETIFS=6
|
||||||
|
@ -80,6 +82,16 @@ test_ip6gretap()
|
||||||
test_vlan_match gt6 'vlan_id 555 vlan_ethtype ipv6' "mirror to ip6gretap"
|
test_vlan_match gt6 'vlan_id 555 vlan_ethtype ipv6' "mirror to ip6gretap"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
test_gretap_stp()
|
||||||
|
{
|
||||||
|
full_test_span_gre_stp gt4 $swp3.555 "mirror to gretap"
|
||||||
|
}
|
||||||
|
|
||||||
|
test_ip6gretap_stp()
|
||||||
|
{
|
||||||
|
full_test_span_gre_stp gt6 $swp3.555 "mirror to ip6gretap"
|
||||||
|
}
|
||||||
|
|
||||||
test_all()
|
test_all()
|
||||||
{
|
{
|
||||||
slow_path_trap_install $swp1 ingress
|
slow_path_trap_install $swp1 ingress
|
||||||
|
|
Loading…
Reference in New Issue