[dpdk-stable] [PATCH] app/testpmd: fix missing geneve flow item in raw encap

Wisam Monther wisamm at mellanox.com
Thu Oct 17 10:12:11 CEST 2019


Fixes: 0f4203fe9d18 ("app/testpmd: support GENEVE pattern item in flow rules")
Cc: roman.zhukov at oktetlabs.ru
Cc: stable at dpdk.org

Signed-off-by: Wisam Jaddo <wisamm at mellanox.com>
---
 app/test-pmd/cmdline_flow.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c
index b26b8bf..84d4ae2 100644
--- a/app/test-pmd/cmdline_flow.c
+++ b/app/test-pmd/cmdline_flow.c
@@ -5944,6 +5944,9 @@ cmd_set_raw_parsed(const struct buffer *in)
 			size = sizeof(struct rte_flow_item_nvgre);
 			proto = 0x2F;
 			break;
+		case RTE_FLOW_ITEM_TYPE_GENEVE:
+			size = sizeof(struct rte_flow_item_geneve);
+			break;
 		default:
 			printf("Error - Not supported item\n");
 			*total_size = 0;
-- 
2.7.4



More information about the stable mailing list