net/bnxt: save the number of EM flow count
authorAjit Khaparde <ajit.khaparde@broadcom.com>
Wed, 17 Jul 2019 10:41:32 +0000 (16:11 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 23 Jul 2019 12:31:35 +0000 (14:31 +0200)
commitff9c0ca47e81176b5721c0f60dfc411330d205c6
treedddcf882f839bde3fa84f07b8fc0b7b551d13969
parentfe7848521581926a2edb8dedc5720d0d6f0af899
net/bnxt: save the number of EM flow count

Save the number of EM flow count returned by the FW in HWRM_FUNC_QCFG
and use it to calculate the overall pool of L2 contexts supported by FW.

Fixes: 6d8109bcb398 ("net/bnxt: check VF resources if resource manager is enabled")
Cc: stable@dpdk.org
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
drivers/net/bnxt/bnxt.h
drivers/net/bnxt/bnxt_hwrm.c