net/bnxt: fix Rx queue count
authorLance Richardson <lance.richardson@broadcom.com>
Thu, 18 Feb 2021 18:19:20 +0000 (13:19 -0500)
committerAjit Khaparde <ajit.khaparde@broadcom.com>
Mon, 1 Mar 2021 00:26:10 +0000 (01:26 +0100)
commit9f13e888ef77d36a97a3ace278e8e812a98e740d
tree35b1e1eaa4c9eb58951457cf46b62a8900c84870
parent09d196c0a0797813c0c608f303c9ebbe58656fbe
net/bnxt: fix Rx queue count

bnxt_rx_queue_count_op() incorrectly returns the number of
filled but unprocessed completion queue entries instead of
the number of filled but unprocessed received packet
completions. Fix by properly accounting for the number of
completion ring entries used by the various received packet
completion types.

Fixes: 34c0ba839bae ("net/bnxt: fix Rx queue count")
Cc: stable@dpdk.org
Signed-off-by: Lance Richardson <lance.richardson@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_cpr.h
drivers/net/bnxt/bnxt_ethdev.c
drivers/net/bnxt/bnxt_rxr.c
drivers/net/bnxt/bnxt_rxr.h