diff mbox

[ovs-dev,v3,4/4] tests: Set default max_vlan_headers

Message ID 20160703004709.1269-5-shaw.leon@gmail.com
State Superseded
Headers show

Commit Message

Xiao Liang July 3, 2016, 12:47 a.m. UTC
Set default max_vlan_headers of test-odp and dpif-netdev to SIZE_MAX

Signed-off-by: Xiao Liang <shaw.leon@gmail.com>
---
 lib/dpif-netdev.c | 1 +
 tests/test-odp.c  | 1 +
 2 files changed, 2 insertions(+)
diff mbox

Patch

diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c
index cbf7b97..a60c88a 100644
--- a/lib/dpif-netdev.c
+++ b/lib/dpif-netdev.c
@@ -90,6 +90,7 @@  static struct shash dp_netdevs OVS_GUARDED_BY(dp_netdev_mutex)
 static struct vlog_rate_limit upcall_rl = VLOG_RATE_LIMIT_INIT(600, 600);
 
 static struct odp_support dp_netdev_support = {
+    .max_vlan_headers = SIZE_MAX,
     .max_mpls_depth = SIZE_MAX,
     .recirc = true,
 };
diff --git a/tests/test-odp.c b/tests/test-odp.c
index 8e4db09..735f2ff 100644
--- a/tests/test-odp.c
+++ b/tests/test-odp.c
@@ -62,6 +62,7 @@  parse_keys(bool wc_keys)
                     .ct_zone = true,
                     .ct_mark = true,
                     .ct_label = true,
+                    .max_vlan_headers = SIZE_MAX,
                 },
             };