]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/fm10k/fm10k_rxtx.c
net/fm10k: fix port id type
[dpdk.git] / drivers / net / fm10k / fm10k_rxtx.c
index c9bb04a0e395ea11a3696a246a088f649c05797d..4e84926f8b30e8e1fb4923e1ead8c05145d8f25d 100644 (file)
@@ -198,7 +198,7 @@ fm10k_recv_pkts(void *rx_queue, struct rte_mbuf **rx_pkts,
                                        q->alloc_thresh);
 
                if (unlikely(ret != 0)) {
-                       uint8_t port = q->port_id;
+                       uint16_t port = q->port_id;
                        PMD_RX_LOG(ERR, "Failed to alloc mbuf");
                        /*
                         * Need to restore next_dd if we cannot allocate new
@@ -356,7 +356,7 @@ fm10k_recv_scattered_pkts(void *rx_queue, struct rte_mbuf **rx_pkts,
                                        q->alloc_thresh);
 
                if (unlikely(ret != 0)) {
-                       uint8_t port = q->port_id;
+                       uint16_t port = q->port_id;
                        PMD_RX_LOG(ERR, "Failed to alloc mbuf");
                        /*
                         * Need to restore next_dd if we cannot allocate new