[][kernel][common][hnat][Refactor the HNAT GMAC FP assginment for supporting DSA WAN port]

[Description]
Refactor HNAT gmac FP assginment for supporting DSA WAN switch port

Without this patch, the original flow assign HNAT entry FP based on the
mac->id stored in net_device, but when it comes to dsa device it may
not work probably and assign a wrong FP to that entry.

[Release-log]
N/A


Change-Id: I8ffdb39bed3dfdaf48cb7459e6a037e2725ef000
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/9140048
2 files changed