Somnath Kotur 7e8d5583f7 net/bnxt: fix scalar Rx datapath on Thor
The patch introduced by
commit 657c2a7f1dd4 ("net/bnxt: create aggregation rings when needed")
ended up shortening the return code path from the function thereby
resulting in not executing the line of code at the end of the function
that was resetting the next consumer index to 0.
This would result in an application crash when error recovery or other
port stop/start scenarios were invoked on Thor which is what this
commit 61cd4384fabf ("net/bnxt: fix crash after port stop/start")
was addressing.
Fix it by moving the resetting line of code before the return path
in the case when aggregation rings are not used (default case).

Fixes: 657c2a7f1dd4 ("net/bnxt: create aggregation rings when needed")

Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
2021-11-05 02:00:49 +01:00
..
2021-11-04 22:15:10 +01:00
2021-01-29 18:16:10 +01:00
2021-10-22 18:15:38 +02:00
2021-10-22 18:15:38 +02:00
2021-10-22 18:15:38 +02:00
2021-10-22 18:15:38 +02:00
2021-10-22 18:15:38 +02:00
2021-10-22 18:15:38 +02:00
2021-07-15 02:31:32 +02:00
2021-04-24 21:23:09 +02:00
2021-01-29 18:16:10 +01:00
2021-10-22 18:15:38 +02:00
2021-10-22 18:15:38 +02:00
2021-01-29 18:16:10 +01:00
2021-08-17 08:37:52 +02:00