diff mbox series

[1/2] net/i40e: support GTP checksum offload

Message ID 20201125093214.14504-2-murphyx.yang@intel.com (mailing list archive)
State Superseded, archived
Delegated to: Ferruh Yigit
Headers show
Series support GTP-U Tx offload on FVL and CVL | expand

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Murphy Yang Nov. 25, 2020, 9:32 a.m. UTC
To support Tx side offload on GTP tunneling packet, driver should
set correct tunneling parameters of 'L4TUNT'.

Signed-off-by: Murphy Yang <murphyx.yang@intel.com>
---
 drivers/net/i40e/i40e_rxtx.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Guo, Jia Dec. 2, 2020, 8:06 a.m. UTC | #1
Acked-by: Jeff Guo <jia.guo@intel.com>

> -----Original Message-----
> From: Murphy Yang <murphyx.yang@intel.com>
> Sent: Wednesday, November 25, 2020 5:32 PM
> To: dev@dpdk.org
> Cc: Yang, Qiming <qiming.yang@intel.com>; Yang, SteveX
> <stevex.yang@intel.com>; Xing, Beilei <beilei.xing@intel.com>; Guo, Jia
> <jia.guo@intel.com>; Lu, Wenzhuo <wenzhuo.lu@intel.com>; Yang,
> MurphyX <murphyx.yang@intel.com>
> Subject: [PATCH 1/2] net/i40e: support GTP checksum offload
> 
> To support Tx side offload on GTP tunneling packet, driver should set correct
> tunneling parameters of 'L4TUNT'.
> 
> Signed-off-by: Murphy Yang <murphyx.yang@intel.com>
> ---
>  drivers/net/i40e/i40e_rxtx.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/net/i40e/i40e_rxtx.c b/drivers/net/i40e/i40e_rxtx.c index
> 5df9a9df56..6b64a03d16 100644
> --- a/drivers/net/i40e/i40e_rxtx.c
> +++ b/drivers/net/i40e/i40e_rxtx.c
> @@ -233,6 +233,7 @@ i40e_parse_tunneling_params(uint64_t ol_flags,
>  		/* for non UDP / GRE tunneling, set to 00b */
>  		break;
>  	case PKT_TX_TUNNEL_VXLAN:
> +	case PKT_TX_TUNNEL_GTP:
>  	case PKT_TX_TUNNEL_GENEVE:
>  		*cd_tunneling |= I40E_TXD_CTX_UDP_TUNNELING;
>  		break;
> --
> 2.17.1
diff mbox series

Patch

diff --git a/drivers/net/i40e/i40e_rxtx.c b/drivers/net/i40e/i40e_rxtx.c
index 5df9a9df56..6b64a03d16 100644
--- a/drivers/net/i40e/i40e_rxtx.c
+++ b/drivers/net/i40e/i40e_rxtx.c
@@ -233,6 +233,7 @@  i40e_parse_tunneling_params(uint64_t ol_flags,
 		/* for non UDP / GRE tunneling, set to 00b */
 		break;
 	case PKT_TX_TUNNEL_VXLAN:
+	case PKT_TX_TUNNEL_GTP:
 	case PKT_TX_TUNNEL_GENEVE:
 		*cd_tunneling |= I40E_TXD_CTX_UDP_TUNNELING;
 		break;