[PATCH] net/ice: fix FDIR session ID offset for L-bit L2TPv2 types

Bruce Richardson bruce.richardson at intel.com
Fri Apr 3 16:19:44 CEST 2026


On Mon, Mar 30, 2026 at 09:23:19AM +0530, Shaiq Wani wrote:
> L2TPv2 types with the Length bit set have a 2-byte Length field before
> Tunnel ID, placing session_id at UDP payload offset 14, not 12. The
> driver always used offset 12, causing FDIR to match on wrong bytes.
> 
> Wire up ICE_FLOW_FIELD_IDX_L2TPV2_LEN_SESS_ID which was defined but
> never used, and select it based on the L-bit in flags_version.
> 
> Fixes: 733640dae75e ("net/ice: support L2TPv2 flow pattern matching")
> 
> Signed-off-by: Shaiq Wani <shaiq.wani at intel.com>
> ---
>  drivers/net/intel/ice/ice_fdir_filter.c  | 13 +++++++++++--
>  drivers/net/intel/ice/ice_generic_flow.h |  3 +++
>  2 files changed, 14 insertions(+), 2 deletions(-)
Acked-by: Bruce Richardson <bruce.richardson at intel.com>

Applied to dpdk-next-net-intel.

Thanks,
/Bruce


More information about the dev mailing list