summaryrefslogtreecommitdiff
path: root/examples/multi_process/client_server_mp
diff options
context:
space:
mode:
authorBruce Richardson <bruce.richardson@intel.com>2014-08-28 16:42:38 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2014-09-17 11:27:51 +0200
commitca04aaea8011f983178d295cd9e73a43fc2eaf7c (patch)
tree45ea026d9759a82efbca6d2b8353bd8c3eafa5c1 /examples/multi_process/client_server_mp
parentea672a8b1655bbb44876d2550ff56f384968a43b (diff)
downloaddpdk-ca04aaea8011f983178d295cd9e73a43fc2eaf7c.zip
dpdk-ca04aaea8011f983178d295cd9e73a43fc2eaf7c.tar.gz
dpdk-ca04aaea8011f983178d295cd9e73a43fc2eaf7c.tar.xz
mbuf: rename in_port to just port
In some cases we may want to tag a packet for a particular destination or output port, so rename the "in_port" field in the mbuf to just "port" so that it can be re-used for this purpose if an application needs it. Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com> Acked-by: Olivier Matz <olivier.matz@6wind.com>
Diffstat (limited to 'examples/multi_process/client_server_mp')
-rw-r--r--examples/multi_process/client_server_mp/mp_client/client.c2
1 files changed, 1 insertions, 1 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 71e4a48..ee2338c 100644
--- a/examples/multi_process/client_server_mp/mp_client/client.c
+++ b/examples/multi_process/client_server_mp/mp_client/client.c
@@ -211,7 +211,7 @@ enqueue_packet(struct rte_mbuf *buf, uint8_t port)
static void
handle_packet(struct rte_mbuf *buf)
{
- const uint8_t in_port = buf->in_port;
+ const uint8_t in_port = buf->port;
const uint8_t out_port = output_ports[in_port];
enqueue_packet(buf, out_port);