[][kernel][common][eth][Add ADMAv2 TX support]

[Description]
Add ADMAv2 TX support.

This patch adds support for ADMAv2 single TX ring
and changes SRAM allocation to align with the upstream driver.

Currently, only platforms using NETSYSv3 use ADMAv2.
In order to maintain the upstream coding style
and avoid increasing the complexity of interrupt allocation,
we only added ADMAv2 single TX ring support.

If you want to enable ADMAv2 TX, you must remove the capabilities
(MTK_QDMA, MTK_RSS, and MTK_LRO) to avoid interrupt conflicts
and change qos_toggle to 0 via the following command(default 2):
echo 0 > /sys/kernel/debug/hnat/qos_toggle.

Without this patch, we can only support ADMAv2 RX.

[Release-log]
N/A


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