aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEyal Bari <ebari@cisco.com>2018-08-05 12:58:42 +0300
committerJohn Lo <loj@cisco.com>2018-08-06 14:44:22 +0000
commit4d2eb4ca81596af26b197feb85cf48a3c23e129c (patch)
tree446476c438fb9ec27ecb8bf8c666111e5f39e6b5 /src
parentca45ee73d7c49c7f659c5cd690d3403d440e50f9 (diff)
dpdk-flow:fix raw item init
dpdk raw item match string changed from flexible array member to a pointer member Change-Id: I930f05112ce04b0cdb3feb985d755e730b102084 Signed-off-by: Eyal Bari <ebari@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/dpdk/device/flow.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/dpdk/device/flow.c b/src/plugins/dpdk/device/flow.c
index 351390b6d34..6ed11e2f304 100644
--- a/src/plugins/dpdk/device/flow.c
+++ b/src/plugins/dpdk/device/flow.c
@@ -184,7 +184,9 @@ dpdk_flow_add (dpdk_device_t * xd, vnet_flow_t * f, dpdk_flow_entry_t * fe)
raw[0].item.length = vxlan_hdr_sz;
clib_memcpy (raw[0].val + raw_sz, &spec_hdr, vxlan_hdr_sz);
- clib_memcpy (raw[1].val + raw_sz, &mask_hdr, vxlan_hdr_sz);;
+ raw[0].item.pattern = raw[0].val + raw_sz;
+ clib_memcpy (raw[1].val + raw_sz, &mask_hdr, vxlan_hdr_sz);
+ raw[1].item.pattern = raw[1].val + raw_sz;
vec_add2 (items, item, 1);
item->type = RTE_FLOW_ITEM_TYPE_RAW;