[PATCH v6 1/8] net/ice: add L2TPv2 PPP and PPoE data structures

Shaiq Wani
2026-02-18T16:41:48Z

Add data structure definitions for L2TPv2 PPP and
PPoE protocols to support Flow Director (FDIR) filtering.

Signed-off-by: Shaiq Wani <shaiq.wani@intel.com>
Tested-by: Song Jiale <songx.jiale@intel.com>
---
drivers/net/intel/ice/base/ice_fdir.h | 17 +++++++++++++++++
1 file changed, 17 insertions(+)

diff --git a/drivers/net/intel/ice/base/ice_fdir.h b/drivers/net/intel/ice/base/ice_fdir.h
index 3dd03f93f7..3d3b05da4a 100644
--- a/drivers/net/intel/ice/base/ice_fdir.h
+++ b/drivers/net/intel/ice/base/ice_fdir.h
@@ -230,6 +230,20 @@ struct ice_fdir_ecpri {
__be16 pc_id;
};

+struct ice_fdir_pppoe {
+ u8 rsrvd_ver_type;
+ u8 rsrvd_code;
+ __be16 session_id;
+ __be16 length;
+ __be16 ppp_prot_id; /* control and data only */
+};
+
+struct ice_fdir_ppp {
+ u8 addr;
+ u8 ctrl;
+ __be16 proto_id;
+};
+
struct ice_fdir_l2tpv2 {
__be16 flags_version;
__be16 length;
@@ -279,6 +293,9 @@ struct ice_fdir_fltr {
struct ice_fdir_ecpri ecpri_data;
struct ice_fdir_ecpri ecpri_mask;

+ struct ice_fdir_ppp ppp_data;
+ struct ice_fdir_ppp ppp_mask;
+
struct ice_fdir_l2tpv2 l2tpv2_data;
struct ice_fdir_l2tpv2 l2tpv2_mask;

--
2.34.1