[][Add rxdesc for mt7622 on SDK5x]
[Description]
Add head_rx_descinfo4 for mt7622 on SDK5x
[Release-log]
N/A
Change-Id: I19e31571bb21256b876b11346a21f4b7feb23c90
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/4732798
diff --git a/target/linux/mediatek/files-5.4/include/net/ra_nat.h b/target/linux/mediatek/files-5.4/include/net/ra_nat.h
index 7ac691c..83412a4 100755
--- a/target/linux/mediatek/files-5.4/include/net/ra_nat.h
+++ b/target/linux/mediatek/files-5.4/include/net/ra_nat.h
@@ -149,6 +149,7 @@
#endif
} __packed;
+#if defined(CONFIG_MEDIATEK_NETSYS_V2)
struct head_rx_descinfo4 {
uint32_t foe_entry_num:14;
uint32_t CRSN:5;
@@ -173,6 +174,26 @@
#endif
u16 MAGIC_TAG_PROTECT;
} __packed;
+#else
+struct head_rx_descinfo4 {
+ uint32_t foe_entry_num:14;
+ uint32_t CRSN:5;
+ uint32_t SPORT:3;
+ uint32_t rsv:1;
+ uint32_t ALG:1;
+ uint32_t IF:4;
+ uint32_t rsv2:4;
+ uint32_t MAGIC_TAG_PROTECT: 16;
+ uint32_t WDMAID:2;
+ uint32_t RXID:2;
+ uint32_t WCID:10;
+ uint32_t BSSID:6;
+#if defined(CONFIG_RA_HW_NAT_PPTP_L2TP)
+ u16 SOURCE;
+ u16 DEST;
+#endif
+} __packed;
+#endif
struct cb_rx_desc_info4 {
u16 MAGIC_TAG_PROTECT0;