[dpdk-dev,RFC,4/4] app/testpmd: support l3vxlan tunnel type

Message ID 20171129173106.120828-5-xuemingl@mellanox.com
State RFC, archived
Headers show

Checks

Context Check Description
ci/Intel-compilation success Compilation OK
ci/checkpatch success coding style OK

Commit Message

Xueming(Steven) Li Nov. 29, 2017, 5:31 p.m.
Signed-off-by: Xueming Li <xuemingl@mellanox.com>
---
 app/test-pmd/cmdline_flow.c | 9 +++++++++
 1 file changed, 9 insertions(+)

Patch

diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c
index 9402eb7..762ab2c 100644
--- a/app/test-pmd/cmdline_flow.c
+++ b/app/test-pmd/cmdline_flow.c
@@ -160,6 +160,7 @@  enum index {
 	ITEM_SCTP_TAG,
 	ITEM_SCTP_CKSUM,
 	ITEM_VXLAN,
+	ITEM_L3VXLAN,
 	ITEM_VXLAN_VNI,
 	ITEM_E_TAG,
 	ITEM_E_TAG_GRP_ECID_B,
@@ -453,6 +454,7 @@  struct parse_action_priv {
 	ITEM_TCP,
 	ITEM_SCTP,
 	ITEM_VXLAN,
+	ITEM_L3VXLAN,
 	ITEM_E_TAG,
 	ITEM_NVGRE,
 	ITEM_MPLS,
@@ -1367,6 +1369,13 @@  static int comp_vc_action_rss_queue(struct context *, const struct token *,
 		.next = NEXT(item_vxlan),
 		.call = parse_vc,
 	},
+	[ITEM_L3VXLAN] = {
+		.name = "l3vxlan",
+		.help = "match L3VXLAN header",
+		.priv = PRIV_ITEM(L3VXLAN, sizeof(struct rte_flow_item_vxlan)),
+		.next = NEXT(item_vxlan),
+		.call = parse_vc,
+	},
 	[ITEM_VXLAN_VNI] = {
 		.name = "vni",
 		.help = "VXLAN identifier",