diff --git a/tests/system-afxdp-macros.at b/tests/system-afxdp-macros.at index 5ee2ceb1abe..79ece5e8cf2 100644 --- a/tests/system-afxdp-macros.at +++ b/tests/system-afxdp-macros.at @@ -26,7 +26,8 @@ m4_define([OVS_CHECK_8021AD], # # Disable TX offloads and VLAN offloads for veths used in AF_XDP. m4_define([CONFIGURE_VETH_OFFLOADS], - [AT_CHECK([ethtool -K $1 tx off], [0], [ignore], [ignore]) + [AT_SKIP_IF([test $HAVE_ETHTOOL = no]) + AT_CHECK([ethtool -K $1 tx off], [0], [ignore], [ignore]) AT_CHECK([ethtool -K $1 txvlan off], [0], [ignore], [ignore]) ] ) diff --git a/tests/system-dpdk-macros.at b/tests/system-dpdk-macros.at index f8ba7667390..65c40befc9c 100644 --- a/tests/system-dpdk-macros.at +++ b/tests/system-dpdk-macros.at @@ -196,6 +196,7 @@ m4_define([OVS_CHECK_TC_QDISC], m4_define([CONFIGURE_VETH_OFFLOADS], - [AT_CHECK([ethtool -K $1 tx off], [0], [ignore], [ignore]) + [AT_SKIP_IF([test $HAVE_ETHTOOL = no]) + AT_CHECK([ethtool -K $1 tx off], [0], [ignore], [ignore]) AT_CHECK([ethtool -K $1 txvlan off], [0], [ignore], [ignore])] ) diff --git a/tests/system-traffic.at b/tests/system-traffic.at index 3f1a15445ee..e00eac00f54 100644 --- a/tests/system-traffic.at +++ b/tests/system-traffic.at @@ -2326,6 +2326,7 @@ OVS_TRAFFIC_VSWITCHD_STOP AT_CLEANUP AT_SETUP([datapath - netdev offload software fallback]) +AT_SKIP_IF([test $HAVE_ETHTOOL = no]) AT_SKIP_IF([test $HAVE_NC = no]) OVS_TRAFFIC_VSWITCHD_START() diff --git a/tests/system-tso-macros.at b/tests/system-tso-macros.at index b9b13e10bd4..af3d72fb8ba 100644 --- a/tests/system-tso-macros.at +++ b/tests/system-tso-macros.at @@ -28,6 +28,7 @@ m4_define([OVS_TRAFFIC_VSWITCHD_START], # # Enable TCP segmentation offload and scatter-gather for veths. m4_define([CONFIGURE_VETH_OFFLOADS], + [AT_SKIP_IF([test $HAVE_ETHTOOL = no])] [AT_CHECK([ethtool -K $1 sg on], [0], [ignore], [ignore])] [AT_CHECK([ethtool -K $1 tso on], [0], [ignore], [ignore])] ) diff --git a/tests/system-userspace-macros.at b/tests/system-userspace-macros.at index d9b5b7e4c4d..96140a9fa5e 100644 --- a/tests/system-userspace-macros.at +++ b/tests/system-userspace-macros.at @@ -59,6 +59,7 @@ $1";/netdev_linux.*obtaining netdev stats via vport failed/d # This is a workaround, and should be removed when offloads are properly # supported in netdev-linux. m4_define([CONFIGURE_VETH_OFFLOADS], + [AT_SKIP_IF([test $HAVE_ETHTOOL = no])] [AT_CHECK([ethtool -K $1 tx off], [0], [ignore], [ignore])] )