diff mbox series

[ovs-dev,v2,2/3] system-common-macros: Check for ct_clear action in datapath

Message ID 20171026193044.9438-3-e@erig.me
State Superseded
Headers show
Series Add dpif support for ct_clear action | expand

Commit Message

Eric Garver Oct. 26, 2017, 7:30 p.m. UTC
New macro OVS_CHECK_CT_CLEAR() to check if ct_clear action is supported
by the datapath.

Signed-off-by: Eric Garver <e@erig.me>
Tested-by: William Tu <u9012063@gmail.com>
---
 tests/system-common-macros.at | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Flavio Leitner Nov. 17, 2017, 7:51 p.m. UTC | #1
On Thu, 26 Oct 2017 15:30:43 -0400
Eric Garver <e@erig.me> wrote:
> New macro OVS_CHECK_CT_CLEAR() to check if ct_clear action is supported
> by the datapath.
> 
> Signed-off-by: Eric Garver <e@erig.me>
> Tested-by: William Tu <u9012063@gmail.com>
> ---
>  tests/system-common-macros.at | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/tests/system-common-macros.at b/tests/system-common-macros.at
> index 73ae4829dac4..f7d4adb947a0 100644
> --- a/tests/system-common-macros.at
> +++ b/tests/system-common-macros.at
> @@ -319,3 +319,7 @@ m4_define([OVS_CHECK_8021AD],
>  # OVS_CHECK_IPROUTE_ENCAP()
>  m4_define([OVS_CHECK_IPROUTE_ENCAP],
>      [AT_SKIP_IF([! ip route help 2>&1 |grep encap >/dev/null])])
> +
> +# OVS_CHECK_CT_CLEAR()
> +m4_define([OVS_CHECK_CT_CLEAR],
> +    [AT_SKIP_IF([! grep -q "Datapath supports ct_clear action" ovs-vswitchd.log])])


Acked-by: Flavio Leitner <fbl@sysclose.org>
Thanks!
diff mbox series

Patch

diff --git a/tests/system-common-macros.at b/tests/system-common-macros.at
index 73ae4829dac4..f7d4adb947a0 100644
--- a/tests/system-common-macros.at
+++ b/tests/system-common-macros.at
@@ -319,3 +319,7 @@  m4_define([OVS_CHECK_8021AD],
 # OVS_CHECK_IPROUTE_ENCAP()
 m4_define([OVS_CHECK_IPROUTE_ENCAP],
     [AT_SKIP_IF([! ip route help 2>&1 |grep encap >/dev/null])])
+
+# OVS_CHECK_CT_CLEAR()
+m4_define([OVS_CHECK_CT_CLEAR],
+    [AT_SKIP_IF([! grep -q "Datapath supports ct_clear action" ovs-vswitchd.log])])