net/bnxt: fix stats counter resource
authorKishore Padmanabha <kishore.padmanabha@broadcom.com>
Mon, 19 Jul 2021 18:00:50 +0000 (14:00 -0400)
committerAjit Khaparde <ajit.khaparde@broadcom.com>
Fri, 30 Jul 2021 15:37:35 +0000 (17:37 +0200)
commit9967ac7f8497453d96cdb4863e7bb2dc2b0c08f6
tree0f154756f8dfcc1afccbce778e6ea55b0421a52b
parentc18b1b1f99bb164e77f6a012ea37d232aba36ffa
net/bnxt: fix stats counter resource

The flow counters is reduced from 8192 to 6912 for Whitney
for compatibility with different versions of FW.
The FW resource manager splits resources for flow offload
and other use cases. A higher value used for flow offload
by the PMD can cause overriding the resources set aside by
FW. This in turn can lead to FW rejecting filter creation
requests during initialization.

Use a smaller safe value to avoid these issues.

Fixes: 6fad9115101c ("net/bnxt: reorganize ULP template directory structure")
Cc: stable@dpdk.org
Signed-off-by: Kishore Padmanabha <kishore.padmanabha@broadcom.com>
Reviewed-by: Randy Schacher <stuart.schacher@broadcom.com>
Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/tf_ulp/generic_templates/ulp_template_db_tbl.c