commit | 0dea34082ca4d057fd61c6a68c3c70a5682bd98d | [log] [tgz] |
---|---|---|
author | developer <developer@mediatek.com> | Fri Oct 14 13:41:11 2022 +0800 |
committer | developer <developer@mediatek.com> | Tue Oct 18 20:51:51 2022 +0800 |
tree | 81df38bdd6ec9b344c7f6b9755bf0e7adf09526f | |
parent | 9ccff344360d07a8217dc4e0a5a7327aeb15e36f [diff] [blame] |
[][mt7988][Fix PORT6 error RX/TX pause counter in Jaguar] [Description] Fix PORT6 error RX/TX pause counter in Jaguar, the pause counter of PORT6 are the opposite of mt7531. [Release-log] N/A Change-Id: I4cc7be15822ddbf36b5f2fa2e66b60175cda3380 Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/6631603 Build: srv_hbgsm110
diff --git a/feed/switch/src/switch_fun.c b/feed/switch/src/switch_fun.c index ce9d2bb..8ee9675 100755 --- a/feed/switch/src/switch_fun.c +++ b/feed/switch/src/switch_fun.c
@@ -3702,6 +3702,14 @@ int i = 0; for (i = 0; i < 7; i++) { + if (chip_name == 0x7988) { + if ((base == 0x402C) && (i == 6)) + base = 0x408C; + else if ((base == 0x408C) && (i == 6)) + base = 0x402C; + else + ; + } reg_read((base) + (i * 0x100), &pkt_cnt); printf("%8u ", pkt_cnt); }