From: Shaiq Wani <shaiq.wani@intel.com>
To: dev@dpdk.org, bruce.richardson@intel.com, aman.deep.singh@intel.com
Subject: [PATCH v3] net/ice: detect L2TPv2 tunnel type in pre-scan loop
Date: Thu, 9 Apr 2026 13:14:40 +0530 [thread overview]
Message-ID: <20260409074441.3424824-1-shaiq.wani@intel.com> (raw)
In-Reply-To: <20260406081355.3241393-1-shaiq.wani@intel.com>
The pre-scan in ice_fdir_parse_pattern() recognises VXLAN and
GTPU items but not L2TPV2. When an L2TPv2 item is present, tunnel_type
stays NONE, so the ETH item handler stores MAC addresses in the inner
ext_data struct instead of ext_data_outer resulting in rule not matching.
Add ICE_FDIR_TUNNEL_TYPE_L2TPV2 detection alongside the existing VXLAN
check.
Fixes: 733640dae75e ("net/ice: support L2TPv2 flow pattern matching")
Signed-off-by: Shaiq Wani <shaiq.wani@intel.com>
---
v3:
- Fixed check-patch issue.
v2:
- Split from combined outer-MAC patch into a seperate fix.
drivers/net/intel/ice/ice_fdir_filter.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/intel/ice/ice_fdir_filter.c b/drivers/net/intel/ice/ice_fdir_filter.c
index 3522d77123..1cbc613020 100644
--- a/drivers/net/intel/ice/ice_fdir_filter.c
+++ b/drivers/net/intel/ice/ice_fdir_filter.c
@@ -1911,6 +1911,8 @@ ice_fdir_parse_pattern(__rte_unused struct ice_adapter *ad,
for (item = pattern; item->type != RTE_FLOW_ITEM_TYPE_END; item++) {
if (item->type == RTE_FLOW_ITEM_TYPE_VXLAN)
tunnel_type = ICE_FDIR_TUNNEL_TYPE_VXLAN;
+ if (item->type == RTE_FLOW_ITEM_TYPE_L2TPV2)
+ tunnel_type = ICE_FDIR_TUNNEL_TYPE_L2TPV2;
/* To align with shared code behavior, save gtpu outer
* fields in inner struct.
*/
--
2.43.0
next prev parent reply other threads:[~2026-04-09 7:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-06 8:13 [PATCH] net/ice: fix L2TPv2 outer MAC address in training packet Shaiq Wani
2026-04-08 15:55 ` Bruce Richardson
2026-04-08 16:12 ` Bruce Richardson
2026-04-09 7:44 ` Shaiq Wani [this message]
2026-04-09 7:44 ` [PATCH v3] net/ice: fix L2TPv2 outer MAC " Shaiq Wani
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260409074441.3424824-1-shaiq.wani@intel.com \
--to=shaiq.wani@intel.com \
--cc=aman.deep.singh@intel.com \
--cc=bruce.richardson@intel.com \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox