summaryrefslogtreecommitdiff
path: root/examples/multi_process/client_server_mp
diff options
context:
space:
mode:
authorZhiyong Yang <zhiyong.yang@intel.com>2017-10-13 21:17:00 +0800
committerThomas Monjalon <thomas@monjalon.net>2017-10-13 21:57:49 +0200
commit47523597ff6c6ecf5e26e9bd149ab74cca5ec598 (patch)
treed1654b9f107740099486fcf92bf0f2d949be1aa7 /examples/multi_process/client_server_mp
parentb526f0552432ec7c8ef5bd5914f90a03473e9149 (diff)
downloaddpdk-47523597ff6c6ecf5e26e9bd149ab74cca5ec598.zip
dpdk-47523597ff6c6ecf5e26e9bd149ab74cca5ec598.tar.gz
dpdk-47523597ff6c6ecf5e26e9bd149ab74cca5ec598.tar.xz
examples: fix port id type
Fixes: f8244c6399d9 ("ethdev: increase port id range") Signed-off-by: Zhiyong Yang <zhiyong.yang@intel.com>
Diffstat (limited to 'examples/multi_process/client_server_mp')
-rw-r--r--examples/multi_process/client_server_mp/mp_client/client.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/multi_process/client_server_mp/mp_client/client.c b/examples/multi_process/client_server_mp/mp_client/client.c
index 59f36af..4408542 100644
--- a/examples/multi_process/client_server_mp/mp_client/client.c
+++ b/examples/multi_process/client_server_mp/mp_client/client.c
@@ -216,8 +216,8 @@ static void
handle_packet(struct rte_mbuf *buf)
{
int sent;
- const uint8_t in_port = buf->port;
- const uint8_t out_port = output_ports[in_port];
+ const uint16_t in_port = buf->port;
+ const uint16_t out_port = output_ports[in_port];
struct rte_eth_dev_tx_buffer *buffer = tx_buffer[out_port];
sent = rte_eth_tx_buffer(out_port, client_id, buffer, buf);
@@ -276,7 +276,7 @@ main(int argc, char *argv[])
for (;;) {
uint16_t i, rx_pkts;
- uint8_t port;
+ uint16_t port;
rx_pkts = rte_ring_dequeue_burst(rx_ring, pkts,
PKT_READ_SIZE, NULL);