-----邮件原件-----
发件人: Shaiq Wani <[email protected]>
发送时间: 2026年4月27日 10:31
收件人: [email protected]; Richardson, Bruce <[email protected]>; Singh, Aman
Deep <[email protected]>
主题: [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 <[email protected]>
---
Tested-by: Jiale Song <[email protected]>