net/bnxt: fix Rx descriptor status
authorLance Richardson <lance.richardson@broadcom.com>
Tue, 2 Mar 2021 14:29:27 +0000 (09:29 -0500)
committerAjit Khaparde <ajit.khaparde@broadcom.com>
Fri, 12 Mar 2021 06:12:30 +0000 (07:12 +0100)
commit25fefa2b1760a5feb8762fa12845982b98d91f3d
tree25026f7801caf5eaf9789d3f984ab7994884fc5e
parent53f98141ee9d3a3406fe1281bbc993efd0c06575
net/bnxt: fix Rx descriptor status

Fix a number of issues in the bnxt receive descriptor status
function, including:
   - Provide status of receive descriptor instead of completion
     descriptor.
   - Remove invalid comparison of raw ring index with masked ring
     index.
   - Correct misinterpretation of offset parameter as ring index.
   - Correct misuse of completion ring index for mbuf ring (the
     two rings have different sizes).

Fixes: 0fe613bb87b2 ("net/bnxt: support Rx descriptor status")
Cc: stable@dpdk.org
Signed-off-by: Lance Richardson <lance.richardson@broadcom.com>
Reviewed-by: Andy Gospodarek <gospo@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_ethdev.c