From: Ganesh Goudar <redacted>
Date: Fri, 23 Jun 2017 19:14:36 +0530
From: Arjun Vynipadath <redacted>
We were using t4_get_mps_bg_map() for both t4_get_port_stats()
to determine which MPS Buffer Groups to report statistics on for a given
Port, and also for t4_sge_alloc_rxq() to provide a TP Ingress Channel
Congestion Map. For T4/T5 these are actually the same values (because they
are ~somewhat~ related), but for T6 they should return different values
(T6 has Port 0 associated with MPS Buffer Group 0 (with MPS Buffer Group 1
silently cascading off) and Port 1 is associated with MPS Buffer Group 2
(with 3 cascading off)).
Based on the original work by Casey Leedom [off-list ref]
Signed-off-by: Arjun Vynipadath <redacted>
Signed-off-by: Ganesh Goudar <redacted>
Applied.