[][MAC80211][HNAT][Fix cpu self-detected stall issue when Bridger is enabled]

[Description]
Fix cpu self-detected stall issue when Bridger is enabled.

Note: This patch had merged to Linux-5.19.

[Release-log]
N/A

Change-Id: Id0980937c0507cdf445ca8ace81450a4af72af23
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/6365921
diff --git a/autobuild_mac80211_release/target/linux/mediatek/patches-5.4/9993-add-wed.patch b/autobuild_mac80211_release/target/linux/mediatek/patches-5.4/9993-add-wed.patch
index 66c497d..166ab26 100755
--- a/autobuild_mac80211_release/target/linux/mediatek/patches-5.4/9993-add-wed.patch
+++ b/autobuild_mac80211_release/target/linux/mediatek/patches-5.4/9993-add-wed.patch
@@ -840,7 +840,7 @@
  	memcpy(&hwe->data, &entry->data, sizeof(hwe->data));
  	wmb();
  	hwe->ib1 = entry->ib1;
-@@ -362,32 +519,197 @@ int mtk_foe_entry_commit(struct mtk_ppe *ppe, struct mtk_foe_entry *entry,
+@@ -362,32 +519,198 @@ int mtk_foe_entry_commit(struct mtk_ppe *ppe, struct mtk_foe_entry *entry,
  	dma_wmb();
  
  	mtk_ppe_cache_clear(ppe);
@@ -927,6 +927,7 @@
 +	struct mtk_foe_entry *hwe = &ppe->foe_table[hash];
 +	struct mtk_flow_entry *entry;
 +	struct mtk_foe_bridge key = {};
++	struct hlist_node *n;
 +	struct ethhdr *eh;
 +	bool found = false;
 +	u8 *tag;
@@ -936,7 +937,7 @@
 +	if (FIELD_GET(MTK_FOE_IB1_STATE, hwe->ib1) == MTK_FOE_STATE_BIND)
 +		goto out;
 +
-+	hlist_for_each_entry(entry, head, list) {
++	hlist_for_each_entry_safe(entry, n, head, list) {
 +		if (entry->type == MTK_FLOW_TYPE_L2_SUBFLOW) {
 +			if (unlikely(FIELD_GET(MTK_FOE_IB1_STATE, hwe->ib1) ==
 +				     MTK_FOE_STATE_BIND))