net/bnxt: fix Rx next consumer index in mbuf alloc fail
authorSomnath Kotur <somnath.kotur@broadcom.com>
Wed, 17 Nov 2021 03:12:06 +0000 (08:42 +0530)
committerAjit Khaparde <ajit.khaparde@broadcom.com>
Wed, 17 Nov 2021 03:57:19 +0000 (04:57 +0100)
commita7e21843f0f6067ebe36eafff9b8319092db3fc4
tree19cacdcf2241888dbc38aeaa6b3f916b8a89d294
parentba6fa50aaeffc82d7866ef69bd8690402102df64
net/bnxt: fix Rx next consumer index in mbuf alloc fail

The driver internal variable to track the next consumer index on
the Rx ring was not being set if there was an mbuf allocation
failure. In that scenario, eventually it would fall out of sync
with the actual consumer index and raise a false alarm on Thor
needlessly causing a segmentation fault with testpmd

Fixes: 03c8f2fe111c ("net/bnxt: detect bad opaque in Rx completion")
Cc: stable@dpdk.org
Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
drivers/net/bnxt/bnxt_rxr.c