net/bnxt: fix Rx ring producer index
authorRahul Gupta <rahul.gupta@broadcom.com>
Wed, 20 May 2020 17:39:18 +0000 (23:09 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 21 May 2020 13:53:14 +0000 (15:53 +0200)
commit20cb28a0ec7fb0c49807c63e6f57b5e0cdb36065
treef5902d1971fcbaa06a95f918861d71ebfea3536b
parent1adaf0e0f2eeb56bc7d4b22b855706b4aba51567
net/bnxt: fix Rx ring producer index

When a queue is started after deferred_start, then increment raw_prod
irrespective of new mbuf is allocated or old mbufs are used.

Fixes: d256c73c1122 ("net/bnxt: fix memory leak during queue restart")
Cc: stable@dpdk.org
Signed-off-by: Rahul Gupta <rahul.gupta@broadcom.com>
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_rxr.c