From 0f01a7e38394ceba15bf8ef09de5750ea2031fa2 Mon Sep 17 00:00:00 2001 From: Beilei Xing Date: Fri, 12 May 2017 15:13:09 +0800 Subject: [PATCH] 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 --- app/test-pmd/config.c | 2 ++ 1 file changed, 2 insertions(+) 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)), }; -- 2.20.1