[][MAC80211][hnat][Fix LAN/WAN software path low t-Put issue]

[Description]
Fix LAN/WAN software path low t-Put issue.

To improve the software path performance of the ETH to ETH scenario,
we have disabled threaded NAPI and changed RPS strategy in the ETH
driver.

Without this patch, the software path performance of ETH to ETH may
be poor.

[Release-log]
N/A


Change-Id: Ib61148ef16102860a54d86f82d01f3300fc10c67
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/7971831
diff --git a/target/linux/mediatek/base-files/sbin/smp-mt76.sh b/target/linux/mediatek/base-files/sbin/smp-mt76.sh
index 83d7799..709e228 100755
--- a/target/linux/mediatek/base-files/sbin/smp-mt76.sh
+++ b/target/linux/mediatek/base-files/sbin/smp-mt76.sh
@@ -214,6 +214,15 @@
 		#	wifi3_irq=247
 		#fi
 	fi
+
+	for vif in $NET_IF_LIST;
+	do
+		if [[ "$vif" == "lan"* ]] ||  \
+		[[ "$vif" == "wlan"* ]] || [[ "$vif" == "phy"* ]]; then
+			LAN_IF_LIST="$LAN_IF_LIST $vif"
+		fi
+	done;
+	dbg2 "$LAN_IF_LIST = $LAN_IF_LIST"
 	# Please update the CPU binding in each cases.
 	# CPU#_AFFINITY="add binding irq number here"
 	# CPU#_RPS="add binding interface name here"
@@ -234,8 +243,8 @@
 		CPU2_AFFINITY="$wifi2_irq $wifi3_irq"
 		CPU3_AFFINITY="$wifi1_irq"
 
-		CPU0_RPS="$RPS_IF_LIST"
-		CPU1_RPS="$RPS_IF_LIST"
+		CPU0_RPS="$LAN_IF_LIST"
+		CPU1_RPS="$LAN_IF_LIST"
 		CPU2_RPS="$RPS_IF_LIST"
 		CPU3_RPS="$RPS_IF_LIST"
 	fi