回复: [PATCH 7/7] net/ice: pin outer Ethertype for L2TPv2 flow rules

Jiale, SongX songx.jiale at intel.com
Mon Apr 27 11:13:31 CEST 2026


-----邮件原件-----
发件人: Shaiq Wani <shaiq.wani at intel.com> 
发送时间: 2026年4月27日 10:31
收件人: dev at dpdk.org; Richardson, Bruce <bruce.richardson at intel.com>; Singh, Aman Deep <aman.deep.singh at intel.com>
主题: [PATCH 7/7] net/ice: pin outer Ethertype for L2TPv2 flow rules

L2TPv2 flow rules do not include the outer Ethertype in the input set, so a rule created for outer IPv6 also matches packets with outer IPv4 (and vice versa). The hardware profile cannot distinguish the two families because nothing in the match key differentiates them.

Add ICE_INSET_ETHERTYPE to input_set_o and set ext_data.ether_type to
0x0800 or 0x86DD based on the outer L3 item, so the profile includes the Ethertype field and rejects cross-family mismatches.

Fixes: 733640dae75e ("net/ice: support L2TPv2 flow pattern matching")
Signed-off-by: Shaiq Wani <shaiq.wani at intel.com>
---
Tested-by: Jiale Song <songx.jiale at intel.com>


More information about the dev mailing list