cxgb4: Add support to read actual provisioned resources
authorCasey Leedom <leedom@chelsio.com>
Wed, 4 Jul 2018 09:42:56 +0000 (15:12 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Jul 2018 01:53:30 +0000 (10:53 +0900)
commit0eaec62a91ed9d5694b7e2bff30a1b1ad7107be7
tree5181b3362819c52e8332e9e1fb00337af6117930
parent211c41c8c46b5035b2a747a4d41627eef8261969
cxgb4: Add support to read actual provisioned resources

In highly constrained resources environments (like the 124VF
T5 and 248VF T6 configurations), PF4 may not have very many
resources at all and we need to adapt to whatever we've been
allocated, this patch adds support to get the provisioned
resources.

Signed-off-by: Casey Leedom <leedom@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_debugfs.c
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c