mbuf: get DMA address
authorRavi Kerur <rkerur@gmail.com>
Fri, 4 Mar 2016 09:09:40 +0000 (10:09 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 4 Mar 2016 15:01:15 +0000 (16:01 +0100)
commitd6b324c00fc933f757e68c54c0e50c92826d83f0
tree69070513894f2e5deeefe718887cc4ca084ffe06
parentac78cb27a80852f337c92f5373ca778e67a85c40
mbuf: get DMA address

Macros RTE_MBUF_DATA_DMA_ADDR and RTE_MBUF_DATA_DMA_ADDR_DEFAULT
are defined in each PMD driver file. Convert macros to inline
functions and move them to common lib/librte_mbuf/rte_mbuf.h file.
PMD drivers include rte_mbuf.h file directly/indirectly hence no
additioanl header file inclusion is necessary.

Signed-off-by: Ravi Kerur <rkerur@gmail.com>
Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
16 files changed:
drivers/net/bnx2x/bnx2x.c
drivers/net/bnx2x/bnx2x.h
drivers/net/cxgbe/sge.c
drivers/net/e1000/em_rxtx.c
drivers/net/e1000/igb_rxtx.c
drivers/net/i40e/i40e_rxtx.c
drivers/net/ixgbe/ixgbe_rxtx.c
drivers/net/ixgbe/ixgbe_rxtx.h
drivers/net/nfp/nfp_net.c
drivers/net/nfp/nfp_net_pmd.h
drivers/net/virtio/virtio_rxtx.c
drivers/net/virtio/virtio_rxtx_simple.c
drivers/net/virtio/virtqueue.h
drivers/net/vmxnet3/vmxnet3_rxtx.c
drivers/net/xenvirt/virtqueue.h
lib/librte_mbuf/rte_mbuf.h