From: Chaoyong He <chaoyong.he@corigine.com>
To: dev@dpdk.org
Cc: oss-drivers@corigine.com, niklas.soderlund@corigine.com,
Qin Ke <qin.ke@corigine.com>,
Chaoyong He <chaoyong.he@corigine.com>
Subject: [PATCH 2/2] net/nfp: add default process to report outer L4 packet type
Date: Mon, 5 Jun 2023 11:12:07 +0800 [thread overview]
Message-ID: <20230605031207.3381300-3-chaoyong.he@corigine.com> (raw)
In-Reply-To: <20230605031207.3381300-1-chaoyong.he@corigine.com>
From: Qin Ke <qin.ke@corigine.com>
The parsing of outer layer 4 packet type by Rx descriptor is not
supported, add default process to report the outer layer 4 packet
type for VXLAN and GENEVE packets.
Signed-off-by: Qin Ke <qin.ke@corigine.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@corigine.com>
Reviewed-by: Chaoyong He <chaoyong.he@corigine.com>
---
drivers/net/nfp/nfp_rxtx.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/nfp/nfp_rxtx.c b/drivers/net/nfp/nfp_rxtx.c
index a36efd3aa9..0ac9d6db03 100644
--- a/drivers/net/nfp/nfp_rxtx.c
+++ b/drivers/net/nfp/nfp_rxtx.c
@@ -340,13 +340,13 @@ nfp_net_set_ptype(const struct nfp_ptype_parsed *nfp_ptype, struct rte_mbuf *mb)
case NFP_NET_PTYPE_TUNNEL_NONE:
break;
case NFP_NET_PTYPE_TUNNEL_VXLAN:
- mbuf_ptype |= RTE_PTYPE_TUNNEL_VXLAN;
+ mbuf_ptype |= RTE_PTYPE_TUNNEL_VXLAN | RTE_PTYPE_L4_UDP;
break;
case NFP_NET_PTYPE_TUNNEL_NVGRE:
mbuf_ptype |= RTE_PTYPE_TUNNEL_NVGRE;
break;
case NFP_NET_PTYPE_TUNNEL_GENEVE:
- mbuf_ptype |= RTE_PTYPE_TUNNEL_GENEVE;
+ mbuf_ptype |= RTE_PTYPE_TUNNEL_GENEVE | RTE_PTYPE_L4_UDP;
break;
default:
PMD_RX_LOG(DEBUG, "Unrecognized nfp tunnel packet type: %u",
--
2.39.1
next prev parent reply other threads:[~2023-06-05 3:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-05 3:12 [PATCH 0/2] report the outer L3 and " Chaoyong He
2023-06-05 3:12 ` [PATCH 1/2] net/nfp: report outer L3 packet type by Rx descriptor Chaoyong He
2023-06-05 3:12 ` Chaoyong He [this message]
2023-06-06 9:43 ` [PATCH 0/2] report the outer L3 and L4 packet type Ferruh Yigit
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=20230605031207.3381300-3-chaoyong.he@corigine.com \
--to=chaoyong.he@corigine.com \
--cc=dev@dpdk.org \
--cc=niklas.soderlund@corigine.com \
--cc=oss-drivers@corigine.com \
--cc=qin.ke@corigine.com \
/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).