[v1] net/ice/base: fix inner L4 offset for gptu dummy packet

Message ID 20210426060208.986548-1-yuying.zhang@intel.com (mailing list archive)
State Accepted, archived
Delegated to: Qi Zhang
Headers
Series [v1] net/ice/base: fix inner L4 offset for gptu dummy packet |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/iol-intel-Functional success Functional Testing PASS
ci/iol-intel-Performance success Performance Testing PASS
ci/Intel-compilation success Compilation OK
ci/intel-Testing success Testing PASS
ci/iol-abi-testing success Testing PASS
ci/iol-testing success Testing PASS
ci/iol-mellanox-Performance success Performance Testing PASS

Commit Message

Zhang, Yuying April 26, 2021, 6:02 a.m. UTC
  Fix inner L4 offset of ipv6_gtpu_ipv6_tcp/udp dummy packet.

Fixes: bd4d9a89dbc1 ("net/ice/base: add GTP filtering via advanced switch filter")
Cc: stable@dpdk.org

Signed-off-by: Yuying Zhang <yuying.zhang@intel.com>
---
 drivers/net/ice/base/ice_switch.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Comments

Qi Zhang April 26, 2021, 9:21 a.m. UTC | #1
> -----Original Message-----
> From: Zhang, Yuying <yuying.zhang@intel.com>
> Sent: Monday, April 26, 2021 2:02 PM
> To: dev@dpdk.org; Zhang, Qi Z <qi.z.zhang@intel.com>
> Cc: Zhang, Yuying <yuying.zhang@intel.com>; stable@dpdk.org
> Subject: [PATCH v1] net/ice/base: fix inner L4 offset for gptu dummy packet
> 
> Fix inner L4 offset of ipv6_gtpu_ipv6_tcp/udp dummy packet.
> 
> Fixes: bd4d9a89dbc1 ("net/ice/base: add GTP filtering via advanced switch
> filter")
> Cc: stable@dpdk.org
> 
> Signed-off-by: Yuying Zhang <yuying.zhang@intel.com>

Acked-by: Qi Zhang <qi.z.zhang@intel.com>

Applied to dpdk-next-net-intel.

Thanks
Qi
  

Patch

diff --git a/drivers/net/ice/base/ice_switch.c b/drivers/net/ice/base/ice_switch.c
index 2a9bea4261..c48e7b7232 100644
--- a/drivers/net/ice/base/ice_switch.c
+++ b/drivers/net/ice/base/ice_switch.c
@@ -808,7 +808,7 @@  static const struct ice_dummy_pkt_offsets dummy_ipv6_gtpu_ipv6_tcp_packet_offset
 	{ ICE_UDP_OF,		54 },
 	{ ICE_GTP,		62 },
 	{ ICE_IPV6_IL,		82 },
-	{ ICE_TCP_IL,		102 },
+	{ ICE_TCP_IL,		122 },
 	{ ICE_PROTOCOL_LAST,	0 },
 };
 
@@ -865,7 +865,7 @@  static const struct ice_dummy_pkt_offsets dummy_ipv6_gtpu_ipv6_udp_packet_offset
 	{ ICE_UDP_OF,		54 },
 	{ ICE_GTP,		62 },
 	{ ICE_IPV6_IL,		82 },
-	{ ICE_UDP_ILOS,		102 },
+	{ ICE_UDP_ILOS,		122 },
 	{ ICE_PROTOCOL_LAST,	0 },
 };