[v2,2/2] net/ice: add GTP tunnel type in tunneling parse

Message ID f43c4b13b2e1d67ae8d45d23a229d08ef275b4d8.1571647239.git.ting.xu@intel.com (mailing list archive)
State Accepted, archived
Delegated to: Ferruh Yigit
Headers
Series support GTP Tx checksum offload |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK
ci/travis-robot success Travis build: passed

Commit Message

Xu, Ting Oct. 21, 2019, 10 a.m. UTC
  Add GTP tunnel type in ice pmd tunneling parameters parse
to enable Tx checksum offload.

Signed-off-by: Ting Xu <ting.xu@intel.com>
---
 doc/guides/rel_notes/release_19_11.rst | 1 +
 drivers/net/ice/ice_rxtx.c             | 1 +
 2 files changed, 2 insertions(+)
  

Comments

Ferruh Yigit Oct. 23, 2019, 2:56 p.m. UTC | #1
On 10/21/2019 11:00 AM, Ting Xu wrote:
> Add GTP tunnel type in ice pmd tunneling parameters parse
> to enable Tx checksum offload.
> 
> Signed-off-by: Ting Xu <ting.xu@intel.com>

Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
  

Patch

diff --git a/doc/guides/rel_notes/release_19_11.rst b/doc/guides/rel_notes/release_19_11.rst
index 88086b795..d61604c10 100644
--- a/doc/guides/rel_notes/release_19_11.rst
+++ b/doc/guides/rel_notes/release_19_11.rst
@@ -104,6 +104,7 @@  New Features
   * Generic filter enhancement
     - Supported pipeline mode.
     - Supported new packet type like PPPoE for switch filter.
+  * Added support for GTP Tx checksum offload.
 
 * **Updated iavf PMD.**
 
diff --git a/drivers/net/ice/ice_rxtx.c b/drivers/net/ice/ice_rxtx.c
index d4c801fc8..8d4820d3c 100644
--- a/drivers/net/ice/ice_rxtx.c
+++ b/drivers/net/ice/ice_rxtx.c
@@ -2163,6 +2163,7 @@  ice_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 |= ICE_TXD_CTX_UDP_TUNNELING;
 		break;