cxgb4: Update T6 Buffer Group and Channel Mappings
authorArjun Vynipadath <arjun@chelsio.com>
Fri, 23 Jun 2017 13:44:36 +0000 (19:14 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Jun 2017 18:22:39 +0000 (14:22 -0400)
commit193c4c2845f7c6b37a4886d747f47b1dff64600a
tree928ee1e4e238e3298fcff132a01442c926d8b4ea
parentac55cd619335c577f29eea599a6a35b6b48797e8
cxgb4: Update T6 Buffer Group and Channel Mappings

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 <leedom@chelsio.com>
Signed-off-by: Arjun Vynipadath <arjun@chelsio.com>
Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c