summaryrefslogtreecommitdiff
path: root/target/linux/ramips/patches/122-hwnat-build-error.patch
blob: 749d97ed27227c5620acca75abd036fbdc78ae21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Index: linux-3.10.14/net/nat/hw_nat/foe_fdb.c
===================================================================
--- linux-3.10.14.orig/net/nat/hw_nat/foe_fdb.c
+++ linux-3.10.14/net/nat/hw_nat/foe_fdb.c
@@ -565,8 +565,12 @@ int _FoeDropEntry(unsigned int entry_num
 	struct FoeEntry *entry;
 	
 	entry = &PpeFoeBase[entry_num];
-	
+
+#if !defined (CONFIG_HNAT_V2)
 	entry->ipv4_hnapt.iblk2.dp = 7;
+#elif defined(CONFIG_ARCH_MT7623) || defined(CONFIG_RALINK_MT7621)
+ 	entry->ipv4_hnapt.iblk2.dp = 7;
+#endif
 
 #if defined (CONFIG_HNAT_V2)
 	PpeSetCacheEbl(); /*clear HWNAT cache*/