numam-dpdk/lib/librte_mbuf
Cyril Chemparathy b2906abb0d mbuf: add macro for offset arithmetic
There are a number of instances in the code where rte_pktmbuf_mtod()
is used to get the mbuf data pointer, only to add an offset before
casting the result to some other header type.  This patch adds a new
rte_pktmbuf_mtod_offset() macro to eliminate these awful double cast
situations.

Signed-off-by: Cyril Chemparathy <cchemparathy@ezchip.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
2015-06-24 12:00:42 +02:00
..
Makefile mk: add library version extension 2015-02-03 16:56:58 +01:00
rte_mbuf_version.map mbuf: fix indent in version map 2015-06-23 23:31:15 +02:00
rte_mbuf.c mbuf: fix cloning with private mbuf data 2015-04-28 11:34:10 +02:00
rte_mbuf.h mbuf: add macro for offset arithmetic 2015-06-24 12:00:42 +02:00