cxgb4: Use Firmware params to get buffer-group map
authorArjun Vynipadath <arjun@chelsio.com>
Fri, 23 Jun 2017 13:44:37 +0000 (19:14 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Jun 2017 18:22:39 +0000 (14:22 -0400)
commit8f46d46715a12f509e13200033a1ed4d6cf335ff
treecdeb27d6f3c9805444a1f644d31528648bd6b34b
parent193c4c2845f7c6b37a4886d747f47b1dff64600a
cxgb4: Use Firmware params to get buffer-group map

Buffer group mappings can be obtained using FW_PARAMs cmd for newer FW.

Since some of the bg_maps are obtained in atomic context, created another
t4_query_params_ns(), that wont sleep when awaiting mbox cmd completion.

Signed-off-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/t4_hw.c
drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h