mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
tests: layer3-tunnels: Skip bareudp tests if not supported by kernel.
The bareudp tests depend on specific kernel configuration to succeed. Skip the test if the feature is not enabled in the running kernel. Signed-off-by: Frode Nordahl <frode.nordahl@canonical.com> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
This commit is contained in:
committed by
Ilya Maximets
parent
68d6d2777f
commit
d51a4ef0a6
@@ -237,3 +237,13 @@ m4_define([CHECK_L3L4_CONNTRACK_REASM])
|
||||
#
|
||||
# The kernel module tests do not use TC offload.
|
||||
m4_define([CHECK_NO_TC_OFFLOAD])
|
||||
|
||||
# OVS_CHECK_BAREUDP()
|
||||
#
|
||||
# The feature needs to be enabled in the kernel configuration (CONFIG_BAREUDP)
|
||||
# to work.
|
||||
m4_define([OVS_CHECK_BAREUDP],
|
||||
[
|
||||
AT_SKIP_IF([! ip link add dev ovs_bareudp0 type bareudp dstport 6635 ethertype mpls_uc 2>&1 >/dev/null])
|
||||
AT_CHECK([ip link del dev ovs_bareudp0])
|
||||
])
|
||||
|
@@ -154,7 +154,7 @@ OVS_VSWITCHD_STOP
|
||||
AT_CLEANUP
|
||||
|
||||
AT_SETUP([layer3 - ping over MPLS Bareudp])
|
||||
OVS_CHECK_MIN_KERNEL(5, 7)
|
||||
OVS_CHECK_BAREUDP()
|
||||
OVS_TRAFFIC_VSWITCHD_START([_ADD_BR([br1])])
|
||||
ADD_NAMESPACES(at_ns0, at_ns1)
|
||||
|
||||
@@ -202,7 +202,7 @@ OVS_TRAFFIC_VSWITCHD_STOP
|
||||
AT_CLEANUP
|
||||
|
||||
AT_SETUP([layer3 - ping over Bareudp])
|
||||
OVS_CHECK_MIN_KERNEL(5, 7)
|
||||
OVS_CHECK_BAREUDP()
|
||||
OVS_TRAFFIC_VSWITCHD_START([_ADD_BR([br1])])
|
||||
ADD_NAMESPACES(at_ns0, at_ns1)
|
||||
|
||||
|
@@ -336,3 +336,11 @@ m4_define([CHECK_L3L4_CONNTRACK_REASM],
|
||||
#
|
||||
# Userspace tests do not use TC offload.
|
||||
m4_define([CHECK_NO_TC_OFFLOAD])
|
||||
|
||||
# OVS_CHECK_BAREUDP()
|
||||
#
|
||||
# The userspace datapath does not support bareudp tunnels.
|
||||
m4_define([OVS_CHECK_BAREUDP],
|
||||
[
|
||||
AT_SKIP_IF([:])
|
||||
])
|
||||
|
Reference in New Issue
Block a user