DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Xu, Ting" <ting.xu@intel.com>
To: Olivier Matz <olivier.matz@6wind.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>,
	"Lu, Wenzhuo" <wenzhuo.lu@intel.com>,
	"Wu,  Jingjing" <jingjing.wu@intel.com>,
	"Ye, Xiaolong" <xiaolong.ye@intel.com>,
	 "Yang, Qiming" <qiming.yang@intel.com>,
	"Mcnamara, John" <john.mcnamara@intel.com>,
	"Kovacevic, Marko" <marko.kovacevic@intel.com>,
	"Zhang, Qi Z" <qi.z.zhang@intel.com>
Subject: Re: [dpdk-dev] [PATCH v1 1/2] lib/mbuf: add GTP tunnel type flag
Date: Mon, 21 Oct 2019 02:38:43 +0000	[thread overview]
Message-ID: <8C448DD570D7CD459EACDF44AB3869D701926617@SHSMSX106.ccr.corp.intel.com> (raw)
In-Reply-To: <20191018083811.mwau5g3shqgz66bw@platinum>

Hi, Olivier,

Thanks for advice. I will modify codes according to your comments.
As for the packet header, I define a simplified GTP header in patch: app/testpmd: enable GTP header parse and Tx checksum offload, in order to help forward GTP packet in testpmd.
I just moved some codes to rte_ether.h according to Ferruh's comments in that patch, which may need your review as well.

Thanks.

-----Original Message-----
From: Olivier Matz [mailto:olivier.matz@6wind.com] 
Sent: Friday, October 18, 2019 4:38 PM
To: Xu, Ting <ting.xu@intel.com>
Cc: dev@dpdk.org; Lu, Wenzhuo <wenzhuo.lu@intel.com>; Wu, Jingjing <jingjing.wu@intel.com>; Ye, Xiaolong <xiaolong.ye@intel.com>; Yang, Qiming <qiming.yang@intel.com>; Mcnamara, John <john.mcnamara@intel.com>; Kovacevic, Marko <marko.kovacevic@intel.com>; Zhang, Qi Z <qi.z.zhang@intel.com>
Subject: Re: [PATCH v1 1/2] lib/mbuf: add GTP tunnel type flag

Hi,

On Fri, Sep 20, 2019 at 08:36:23AM +0000, Ting Xu wrote:
> Add GTP tunnel type flag in mbuf for future use in GTP checksum 
> offload.
> 
> Signed-off-by: Ting Xu <ting.xu@intel.com>
> ---
>  lib/librte_mbuf/rte_mbuf.h | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h 
> index 98225ec80..0a5d67d9a 100644
> --- a/lib/librte_mbuf/rte_mbuf.h
> +++ b/lib/librte_mbuf/rte_mbuf.h
> @@ -251,6 +251,8 @@ extern "C" {
>  /** TX packet with MPLS-in-UDP RFC 7510 header. */  #define 
> PKT_TX_TUNNEL_MPLSINUDP (0x5ULL << 45)  #define 
> PKT_TX_TUNNEL_VXLAN_GPE (0x6ULL << 45)
> +#define PKT_TX_TUNNEL_GTP       (0x7ULL << 45)
> +
>  /**
>   * Generic IP encapsulated tunnel type, used for TSO and checksum offload.
>   * It can be used for tunnels which are not standards or listed above.

Some updates are missing, for instance in rte_get_tx_ol_flag_name().
Please look what was done for other flags.

Please, can you describe in more details what is expected in the packet header?

Thanks,
Olivier

  reply	other threads:[~2019-10-21  2:38 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-20  8:36 [dpdk-dev] [PATCH v1 0/2] net/ice: enable GTP checksum offload Ting Xu
2019-09-20  8:36 ` [dpdk-dev] [PATCH v1 1/2] lib/mbuf: add GTP tunnel type flag Ting Xu
2019-10-18  8:38   ` Olivier Matz
2019-10-21  2:38     ` Xu, Ting [this message]
2019-10-21  9:59   ` [dpdk-dev] [PATCH v2 0/2] support GTP Tx checksum offload Ting Xu
2019-10-23 14:56     ` Ferruh Yigit
2019-10-21 10:00   ` [dpdk-dev] [PATCH v2 1/2] lib/mbuf: add GTP tunnel type flag Ting Xu
2019-10-23 14:56     ` Ferruh Yigit
2019-10-21 10:00   ` [dpdk-dev] [PATCH v2 2/2] net/ice: add GTP tunnel type in tunneling parse Ting Xu
2019-10-23 14:56     ` Ferruh Yigit
2019-09-20  8:36 ` [dpdk-dev] [PATCH v1 2/2] net/ice: add GTP " Ting Xu
2019-10-17  1:37 ` [dpdk-dev] [PATCH v1 0/2] net/ice: enable GTP checksum offload Zhang, Qi Z

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=8C448DD570D7CD459EACDF44AB3869D701926617@SHSMSX106.ccr.corp.intel.com \
    --to=ting.xu@intel.com \
    --cc=dev@dpdk.org \
    --cc=jingjing.wu@intel.com \
    --cc=john.mcnamara@intel.com \
    --cc=marko.kovacevic@intel.com \
    --cc=olivier.matz@6wind.com \
    --cc=qi.z.zhang@intel.com \
    --cc=qiming.yang@intel.com \
    --cc=wenzhuo.lu@intel.com \
    --cc=xiaolong.ye@intel.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).