net/bnxt: fix SRAM resource free block list
authorKishore Padmanabha <kishore.padmanabha@broadcom.com>
Tue, 16 Nov 2021 13:04:35 +0000 (18:34 +0530)
committerAjit Khaparde <ajit.khaparde@broadcom.com>
Tue, 16 Nov 2021 23:11:01 +0000 (00:11 +0100)
commit7c528c6ef502515cd7f443f69c1ee68ac48bbe7f
treeb425f70fdc328b8a0b5aaaa0eec993d7f64a3e0d
parente90df01c7aba0738a73505942939d2f9e94e1adc
net/bnxt: fix SRAM resource free block list

The SRAM resource free did not reset the next block to be used
when the block is not empty. This caused the flows not be created
when max flows limit is reached and you delete one flow and try to
add a new flow. The fix calls the update of the next free block
even when block is not empty.

Fixes: 37ff91c158a3 ("net/bnxt: add SRAM manager model")

Signed-off-by: Kishore Padmanabha <kishore.padmanabha@broadcom.com>
Signed-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com>
Reviewed-by: Mike Baucom <michael.baucom@broadcom.com>
Reviewed-by: Randy Schacher <stuart.schacher@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/tf_core/tf_sram_mgr.c