summaryrefslogtreecommitdiff
path: root/drivers/net/fm10k
diff options
context:
space:
mode:
authorZhiyong Yang <zhiyong.yang@intel.com>2017-10-13 21:16:56 +0800
committerThomas Monjalon <thomas@monjalon.net>2017-10-13 21:57:48 +0200
commit299609434d3b28dd2c7315baaef9377e6ebb3c7e (patch)
treea6b8664c49e7bf72ded2317f94fdd30ca9e92a92 /drivers/net/fm10k
parent04b443fb2c439b78436f32e7ab2a3267067a0fbe (diff)
downloaddpdk-next-eventdev-299609434d3b28dd2c7315baaef9377e6ebb3c7e.zip
dpdk-next-eventdev-299609434d3b28dd2c7315baaef9377e6ebb3c7e.tar.gz
dpdk-next-eventdev-299609434d3b28dd2c7315baaef9377e6ebb3c7e.tar.xz
net/fm10k: fix port id type
The variable "port" should be defined as uint16_t, fix it here. Fixes: f8244c6399d9 ("ethdev: increase port id range") Signed-off-by: Zhiyong Yang <zhiyong.yang@intel.com>
Diffstat (limited to 'drivers/net/fm10k')
-rw-r--r--drivers/net/fm10k/fm10k_rxtx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/fm10k/fm10k_rxtx.c b/drivers/net/fm10k/fm10k_rxtx.c
index c9bb04a..4e84926 100644
--- a/drivers/net/fm10k/fm10k_rxtx.c
+++ b/drivers/net/fm10k/fm10k_rxtx.c
@@ -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