mbuf: remove rte_ctrlmbuf
authorOlivier Matz <olivier.matz@6wind.com>
Thu, 28 Aug 2014 15:42:36 +0000 (16:42 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 17 Sep 2014 09:27:50 +0000 (11:27 +0200)
commit9aaccf1abdb2894ec23870e1d2199a657f85850e
tree5251119ada1a744e4a836cf85065af662b0a95b2
parent62814bc2e923b3d1867a93a1a4cd6073f5065e41
mbuf: remove rte_ctrlmbuf

The initial role of rte_ctrlmbuf is to carry generic messages (data
pointer + data length) but it's not used by the DPDK or it applications.
Keeping it implies:
  - loosing 1 byte in the rte_mbuf structure
  - having some dead code rte_mbuf.[ch]

This patch removes this feature. Thanks to it, it is now possible to
simplify the rte_mbuf structure by merging the rte_pktmbuf structure
in it. This is done in next commit.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
* Updated patch to HEAD.
* Modified patch to retain the old function names for ctrl mbufs as
  macros. This helps with app compatibility, and allows the concept
  of a control mbuf to be reintroduced via a single-bit flag in
  a future change.
* Updated the packet framework ip_pipeline example application to
  work following this change.

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>
22 files changed:
app/test-pmd/cmdline.c
app/test-pmd/flowgen.c
app/test-pmd/testpmd.c
app/test-pmd/txonly.c
app/test/commands.c
app/test/test_mbuf.c
examples/ip_pipeline/cmdline.c
examples/ip_pipeline/init.c
examples/ip_pipeline/pipeline_firewall.c
examples/ip_pipeline/pipeline_flow_classification.c
examples/ip_pipeline/pipeline_routing.c
examples/ip_pipeline/pipeline_rx.c
examples/ipv4_multicast/main.c
lib/librte_mbuf/rte_mbuf.c
lib/librte_mbuf/rte_mbuf.h
lib/librte_pmd_e1000/em_rxtx.c
lib/librte_pmd_e1000/igb_rxtx.c
lib/librte_pmd_i40e/i40e_rxtx.c
lib/librte_pmd_ixgbe/ixgbe_rxtx.c
lib/librte_pmd_virtio/virtio_rxtx.c
lib/librte_pmd_vmxnet3/vmxnet3_rxtx.c
lib/librte_pmd_xenvirt/rte_eth_xenvirt.c