From: Qiming Yang <qiming.yang@intel.com>
To: dev@dpdk.org
Cc: Qiming Yang <qiming.yang@intel.com>
Subject: [dpdk-dev] [PATCH 2/2] net/i40e: support VXLAN-GPE classification
Date: Wed, 2 Jan 2019 22:38:29 +0800 [thread overview]
Message-ID: <20190102143829.7624-2-qiming.yang@intel.com> (raw)
In-Reply-To: <20190102143829.7624-1-qiming.yang@intel.com>
Added VXLAN-GPE tunnel filter, supported filter to queue.
Signed-off-by: Qiming Yang <qiming.yang@intel.com>
---
app/test-pmd/cmdline.c | 4 +++-
drivers/net/i40e/i40e_ethdev.c | 3 +++
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c
index 51c7fac..7b7cb12 100644
--- a/app/test-pmd/cmdline.c
+++ b/app/test-pmd/cmdline.c
@@ -8704,6 +8704,8 @@ cmd_tunnel_filter_parsed(void *parsed_result,
if (!strcmp(res->tunnel_type, "vxlan"))
tunnel_filter_conf.tunnel_type = RTE_TUNNEL_TYPE_VXLAN;
+ else if (!strcmp(res->tunnel_type, "vxlan-gpe"))
+ tunnel_filter_conf.tunnel_type = RTE_TUNNEL_TYPE_VXLAN_GPE;
else if (!strcmp(res->tunnel_type, "nvgre"))
tunnel_filter_conf.tunnel_type = RTE_TUNNEL_TYPE_NVGRE;
else if (!strcmp(res->tunnel_type, "ipingre"))
@@ -8753,7 +8755,7 @@ cmdline_parse_token_ipaddr_t cmd_tunnel_filter_ip_value =
ip_value);
cmdline_parse_token_string_t cmd_tunnel_filter_tunnel_type =
TOKEN_STRING_INITIALIZER(struct cmd_tunnel_filter_result,
- tunnel_type, "vxlan#nvgre#ipingre");
+ tunnel_type, "vxlan#nvgre#ipingre#vxlan-gpe");
cmdline_parse_token_string_t cmd_tunnel_filter_filter_type =
TOKEN_STRING_INITIALIZER(struct cmd_tunnel_filter_result,
diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c
index 1dd04e6..8eb2a02 100644
--- a/drivers/net/i40e/i40e_ethdev.c
+++ b/drivers/net/i40e/i40e_ethdev.c
@@ -7690,6 +7690,9 @@ i40e_dev_tunnel_filter_set(struct i40e_pf *pf,
case RTE_TUNNEL_TYPE_IP_IN_GRE:
tun_type = I40E_AQC_ADD_CLOUD_TNL_TYPE_IP;
break;
+ case RTE_TUNNEL_TYPE_VXLAN_GPE:
+ tun_type = I40E_AQC_ADD_CLOUD_TNL_TYPE_VXLAN_GPE;
+ break;
default:
/* Other tunnel types is not supported. */
PMD_DRV_LOG(ERR, "tunnel type is not supported.");
--
2.9.5
next prev parent reply other threads:[~2019-01-02 7:15 UTC|newest]
Thread overview: 52+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-02 14:38 [dpdk-dev] [PATCH 1/2] net/i40e: add support for VXLAN-GPE Qiming Yang
2019-01-02 14:38 ` Qiming Yang [this message]
2019-03-18 13:32 ` [dpdk-dev] [PATCH v2 0/4] Supported VXLAN-GPE in i40e Qiming Yang
2019-03-18 13:32 ` Qiming Yang
2019-03-18 13:32 ` [dpdk-dev] [PATCH v2 1/4] net/i40e: add support for VXLAN-GPE Qiming Yang
2019-03-18 13:32 ` Qiming Yang
2019-03-18 13:32 ` [dpdk-dev] [PATCH v2 2/4] net/i40e: support VXLAN-GPE classification Qiming Yang
2019-03-18 13:32 ` Qiming Yang
2019-03-18 13:32 ` [dpdk-dev] [PATCH v2 3/4] app/testpmd: add VXLAN-GPE to tunnel type Qiming Yang
2019-03-18 13:32 ` Qiming Yang
2019-03-18 13:32 ` [dpdk-dev] [PATCH v2 4/4] doc: add release note for VXLAN-GPE support Qiming Yang
2019-03-18 13:32 ` Qiming Yang
2019-03-18 15:41 ` [dpdk-dev] [PATCH v3 0/5] Supported VXLAN-GPE in i40e Qiming Yang
2019-03-18 12:33 ` Zhang, Qi Z
2019-03-18 12:33 ` Zhang, Qi Z
2019-03-18 15:41 ` Qiming Yang
2019-03-18 15:41 ` [dpdk-dev] [PATCH v3 1/5] eal: add VXLAN-GPE macro Qiming Yang
2019-03-18 15:41 ` Qiming Yang
2019-03-18 15:41 ` [dpdk-dev] [PATCH v3 2/5] net/i40e: add support for VXLAN-GPE Qiming Yang
2019-03-18 12:25 ` Zhang, Qi Z
2019-03-18 12:25 ` Zhang, Qi Z
2019-03-18 15:41 ` Qiming Yang
2019-03-18 15:41 ` [dpdk-dev] [PATCH v3 3/5] net/i40e: support VXLAN-GPE classification Qiming Yang
2019-03-18 15:41 ` Qiming Yang
2019-03-18 15:41 ` [dpdk-dev] [PATCH v3 4/5] app/testpmd: add VXLAN-GPE to tunnel type Qiming Yang
2019-03-18 15:41 ` Qiming Yang
2019-03-18 15:42 ` [dpdk-dev] [PATCH v3 5/5] doc: add release note for VXLAN-GPE support Qiming Yang
2019-03-18 15:42 ` Qiming Yang
2019-03-19 16:36 ` [dpdk-dev] [PATCH v4 0/5] Supported VXLAN-GPE in i40e Qiming Yang
2019-03-19 13:03 ` Zhang, Qi Z
2019-03-19 13:03 ` Zhang, Qi Z
2019-03-19 16:36 ` Qiming Yang
2019-03-19 16:36 ` [dpdk-dev] [PATCH v4 1/5] eal: add VXLAN-GPE macro Qiming Yang
2019-03-19 13:50 ` David Marchand
2019-03-19 13:50 ` David Marchand
2019-03-19 16:34 ` Ferruh Yigit
2019-03-19 16:34 ` Ferruh Yigit
2019-03-19 16:36 ` Qiming Yang
2019-03-19 16:36 ` [dpdk-dev] [PATCH v4 2/5] net/i40e: add support for VXLAN-GPE Qiming Yang
2019-03-19 16:36 ` Qiming Yang
2019-03-19 16:36 ` [dpdk-dev] [PATCH v4 3/5] net/i40e: support VXLAN-GPE classification Qiming Yang
2019-03-19 16:36 ` Qiming Yang
2019-03-19 16:36 ` [dpdk-dev] [PATCH v4 4/5] app/testpmd: add VXLAN-GPE to tunnel type Qiming Yang
2019-03-19 16:36 ` Qiming Yang
2019-03-27 11:04 ` Iremonger, Bernard
2019-03-27 11:04 ` Iremonger, Bernard
2019-03-28 10:49 ` Iremonger, Bernard
2019-03-28 10:49 ` Iremonger, Bernard
2019-04-03 5:29 ` Yang, Qiming
2019-04-03 5:29 ` Yang, Qiming
2019-03-19 16:36 ` [dpdk-dev] [PATCH v4 5/5] doc: add release note for VXLAN-GPE support Qiming Yang
2019-03-19 16:36 ` Qiming Yang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190102143829.7624-2-qiming.yang@intel.com \
--to=qiming.yang@intel.com \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).