[qca-nss-sfe] Add PPPoE flow rule to SFE connection database
For IPv4 and IPv6 both, add PPPoE rules into the database
Change-Id: I2cd539e1c1f1149fbd0eb0ac6ca27b3afb709c95
Signed-off-by: Guduri Prathyusha <quic_gprathyu@quicinc.com>
diff --git a/sfe_ipv4.h b/sfe_ipv4.h
index bdfd72d..2496327 100644
--- a/sfe_ipv4.h
+++ b/sfe_ipv4.h
@@ -55,6 +55,10 @@
/* remark DSCP of packet */
#define SFE_IPV4_CONNECTION_MATCH_FLAG_CSUM_OFFLOAD (1<<7)
/* checksum offload.*/
+#define SFE_IPV4_CONNECTION_MATCH_FLAG_PPPOE_DECAP (1<<8)
+ /* Indicates that PPPoE should be decapsulated */
+#define SFE_IPV4_CONNECTION_MATCH_FLAG_PPPOE_ENCAP (1<<9)
+ /* Indicates that PPPoE should be encapsulated */
/*
* IPv4 connection matching structure.
@@ -141,6 +145,12 @@
*/
u64 rx_packet_count64;
u64 rx_byte_count64;
+
+ /*
+ * PPPoE information
+ */
+ u16 pppoe_session_id;
+ u8 pppoe_remote_mac[ETH_ALEN];
};
/*