[ovs-dev,1/5] system-common-macros: Add macro to check for 802.1ad support.

Submitted by Eric Garver on March 17, 2017, 8:13 p.m.

Details

Message ID 20170317201315.2708-2-e@erig.me
State Accepted
Delegated to: Joe Stringer
Headers show

Commit Message

Eric Garver March 17, 2017, 8:13 p.m.
Add macro OVS_CHECK_8021AD().

Signed-off-by: Eric Garver <e@erig.me>
---
 tests/system-common-macros.at | 5 +++++
 1 file changed, 5 insertions(+)

Patch hide | download patch | download mbox

diff --git a/tests/system-common-macros.at b/tests/system-common-macros.at
index 10a08f44567d..3cb6b11ea44f 100644
--- a/tests/system-common-macros.at
+++ b/tests/system-common-macros.at
@@ -267,3 +267,8 @@  m4_define([OVS_CHECK_GRE],
 m4_define([OVS_CHECK_GENEVE],
     [AT_SKIP_IF([! ip link add foo type geneve help 2>&1 | grep geneve >/dev/null])
      OVS_CHECK_FIREWALL()])
+
+# OVS_CHECK_8021AD()
+m4_define([OVS_CHECK_8021AD],
+    [AT_SKIP_IF([! grep -q "VLAN header stack length probed as" ovs-vswitchd.log])
+     AT_SKIP_IF([[test `sed -n 's/.*VLAN header stack length probed as \([0-9]\+\).*/\1/p' ovs-vswitchd.log` -lt 2]])])