net/ice/base: fix inner L4 offset for GTPU dummy packet
authorYuying Zhang <yuying.zhang@intel.com>
Mon, 26 Apr 2021 06:02:08 +0000 (06:02 +0000)
committerQi Zhang <qi.z.zhang@intel.com>
Mon, 26 Apr 2021 09:24:14 +0000 (11:24 +0200)
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>
drivers/net/ice/base/ice_switch.c

index 2a9bea4..c48e7b7 100644 (file)
@@ -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 },
 };