Skip to content

Commit

Permalink
net/bnxt: fix mismatched type comparison in Rx
Browse files Browse the repository at this point in the history
[ upstream commit 0797fcb ]

Fix comparison between uint16_t and uint32_t types.

Fixes: 6dc8323 ("net/bnxt: support port representor data path")

Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
  • Loading branch information
ajitkhaparde authored and steevenlee committed Jun 8, 2021
1 parent e00127b commit 00b2343
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/bnxt/bnxt_rxr.c
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,7 @@ uint16_t bnxt_recv_pkts(void *rx_queue, struct rte_mbuf **rx_pkts,

/* Attempt to alloc Rx buf in case of a previous allocation failure. */
if (alloc_failed) {
uint16_t cnt;
int cnt;

for (cnt = 0; cnt < nb_rx_pkts + nb_rep_rx_pkts; cnt++) {
struct rte_mbuf **rx_buf;
Expand Down

0 comments on commit 00b2343

Please sign in to comment.