net/bnxt: update ULP resource counts
authorPeter Spreadborough <peter.spreadborough@broadcom.com>
Mon, 26 Oct 2020 03:56:05 +0000 (20:56 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 3 Nov 2020 22:35:03 +0000 (23:35 +0100)
commit03c6c9c8941183ef8632339af03db0f32fde667d
tree929229671501c331627b51bd144629d5b7cb9933
parent0ea250f896ca197bbf79e6920abff4531ced0c2c
net/bnxt: update ULP resource counts

Update ULP resource counts for Stingray device.
- FW needs some resources for normal operation. Account those
in the resource manager.
- Update the SR ULP requested resource counts to reflect
those available after AFM resources are accounted for.
- Add build option to select either 2 or 4 slot EM entries.
The default is 4 slot entries.

Signed-off-by: Peter Spreadborough <peter.spreadborough@broadcom.com>
Signed-off-by: Farah Smith <farah.smith@broadcom.com>
Reviewed-by: Randy Schacher <stuart.schacher@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/tf_core/tf_session.h
drivers/net/bnxt/tf_ulp/bnxt_ulp.c