summaryrefslogtreecommitdiff
path: root/examples/multi_process/client_server_mp
diff options
context:
space:
mode:
authorOlivier Matz <olivier.matz@6wind.com>2014-08-28 16:42:37 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2014-09-17 11:27:51 +0200
commitea672a8b1655bbb44876d2550ff56f384968a43b (patch)
treea3a44af5b72c8dd45550107eedcc10f0fc7d5c2f /examples/multi_process/client_server_mp
parent9aaccf1abdb2894ec23870e1d2199a657f85850e (diff)
downloaddpdk-ea672a8b1655bbb44876d2550ff56f384968a43b.zip
dpdk-ea672a8b1655bbb44876d2550ff56f384968a43b.tar.gz
dpdk-ea672a8b1655bbb44876d2550ff56f384968a43b.tar.xz
mbuf: remove the rte_pktmbuf structure
The rte_pktmbuf structure was initially included in the rte_mbuf structure. This was needed when there was 2 types of mbuf (ctrl and packet). As the control mbuf has been removed, we can merge the rte_pktmbuf into the rte_mbuf structure. Advantages of doing this: - the access to mbuf fields is easier (ex: m->data instead of m->pkt.data) - make the structure more consistent: for instance, there was no reason to have the ol_flags field in rte_mbuf - it will allow a deeper reorganization of the rte_mbuf structure in the next commits, allowing to gain several bytes in it Signed-off-by: Olivier Matz <olivier.matz@6wind.com> [Bruce: updated for latest code and new example apps] Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.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 91f70eb..71e4a48 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->pkt.in_port;
+ const uint8_t in_port = buf->in_port;
const uint8_t out_port = output_ports[in_port];
enqueue_packet(buf, out_port);