[PATCH] net/ice: fix L2TPv2 outer MAC address in training packet
Bruce Richardson
bruce.richardson at intel.com
Wed Apr 8 18:12:12 CEST 2026
On Mon, Apr 06, 2026 at 01:43:55PM +0530, Shaiq Wani wrote:
> flow rules with eth + l2tpv2 patterns fail to match because outer MACs
> are written to the wrong location in the training packet.
>
> The pre-scan loop does not detect L2TPV2, so tunnel_type is still 0
> when the ETH item is parsed and MACs land in ext_data (inner) instead
> of ext_data_outer. Also, ice_fdir_get_gen_prgm_pkt() uses the 'loc'
> pointer (past the L2TPv2 header) instead of 'pkt' (Ethernet offset 0).
>
> Detect L2TPV2 in pre-scan, and use 'pkt' for MAC insertion in all
> four L2TPv2 training-packet cases.
>
> Fixes: 733640dae75e ("net/ice: support L2TPv2 flow pattern matching")
> Fixes: bf662653976e ("net/ice/base: support L2TPv2 flow rule")
> Signed-off-by: Shaiq Wani <shaiq.wani at intel.com>
> ---
> drivers/net/intel/ice/base/ice_fdir.c | 16 ++++++++--------
> drivers/net/intel/ice/ice_fdir_filter.c | 2 ++
> 2 files changed, 10 insertions(+), 8 deletions(-)
>
Recheck-request: iol-unit-arm64-testing, iol-intel-Functional, rebase=next-net-intel
More information about the dev
mailing list