From: Beilei Xing Date: Fri, 12 May 2017 07:13:09 +0000 (+0800) Subject: app/testpmd: fix creating E-Tag and NVGRE flow rules X-Git-Tag: spdx-start~3184 X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=commitdiff_plain;h=0f01a7e38394ceba15bf8ef09de5750ea2031fa2 app/testpmd: fix creating E-Tag and NVGRE flow rules Application fails to create NVGRE and E-Tag flows with current configuration, this commit fixes the issue by adding flow items for E_TAG and NVGRE. Fixes: e4840ef2685d ("ethdev: fix incomplete items in flow API") Cc: stable@dpdk.org Signed-off-by: Beilei Xing Acked-by: Adrien Mazarguil --- diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index 14be759099..81ed660065 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -939,6 +939,8 @@ static const struct { MK_FLOW_ITEM(TCP, sizeof(struct rte_flow_item_tcp)), MK_FLOW_ITEM(SCTP, sizeof(struct rte_flow_item_sctp)), MK_FLOW_ITEM(VXLAN, sizeof(struct rte_flow_item_vxlan)), + MK_FLOW_ITEM(E_TAG, sizeof(struct rte_flow_item_e_tag)), + MK_FLOW_ITEM(NVGRE, sizeof(struct rte_flow_item_nvgre)), MK_FLOW_ITEM(MPLS, sizeof(struct rte_flow_item_mpls)), MK_FLOW_ITEM(GRE, sizeof(struct rte_flow_item_gre)), };