git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mbuf: get DMA address
[dpdk.git]
/
drivers
/
net
/
ixgbe
/
ixgbe_rxtx.c
diff --git
a/drivers/net/ixgbe/ixgbe_rxtx.c
b/drivers/net/ixgbe/ixgbe_rxtx.c
index
e95e6b7
..
54278ce
100644
(file)
--- a/
drivers/net/ixgbe/ixgbe_rxtx.c
+++ b/
drivers/net/ixgbe/ixgbe_rxtx.c
@@
-171,7
+171,7
@@
tx4(volatile union ixgbe_adv_tx_desc *txdp, struct rte_mbuf **pkts)
int i;
for (i = 0; i < 4; ++i, ++txdp, ++pkts) {
int i;
for (i = 0; i < 4; ++i, ++txdp, ++pkts) {
- buf_dma_addr =
RTE_MBUF_DATA_DMA_ADDR
(*pkts);
+ buf_dma_addr =
rte_mbuf_data_dma_addr
(*pkts);
pkt_len = (*pkts)->data_len;
/* write data to descriptor */
pkt_len = (*pkts)->data_len;
/* write data to descriptor */
@@
-194,7
+194,7
@@
tx1(volatile union ixgbe_adv_tx_desc *txdp, struct rte_mbuf **pkts)
uint64_t buf_dma_addr;
uint32_t pkt_len;
uint64_t buf_dma_addr;
uint32_t pkt_len;
- buf_dma_addr =
RTE_MBUF_DATA_DMA_ADDR
(*pkts);
+ buf_dma_addr =
rte_mbuf_data_dma_addr
(*pkts);
pkt_len = (*pkts)->data_len;
/* write data to descriptor */
pkt_len = (*pkts)->data_len;
/* write data to descriptor */
@@
-816,7
+816,7
@@
ixgbe_xmit_pkts(void *tx_queue, struct rte_mbuf **tx_pkts,
* Set up Transmit Data Descriptor.
*/
slen = m_seg->data_len;
* Set up Transmit Data Descriptor.
*/
slen = m_seg->data_len;
- buf_dma_addr =
RTE_MBUF_DATA_DMA_ADDR
(m_seg);
+ buf_dma_addr =
rte_mbuf_data_dma_addr
(m_seg);
txd->read.buffer_addr =
rte_cpu_to_le_64(buf_dma_addr);
txd->read.cmd_type_len =
txd->read.buffer_addr =
rte_cpu_to_le_64(buf_dma_addr);
txd->read.cmd_type_len =
@@
-1152,7
+1152,7
@@
ixgbe_rx_alloc_bufs(struct ixgbe_rx_queue *rxq, bool reset_mbuf)
mb->data_off = RTE_PKTMBUF_HEADROOM;
/* populate the descriptors */
mb->data_off = RTE_PKTMBUF_HEADROOM;
/* populate the descriptors */
- dma_addr = rte_cpu_to_le_64(
RTE_MBUF_DATA_DMA_ADDR_DEFAULT
(mb));
+ dma_addr = rte_cpu_to_le_64(
rte_mbuf_data_dma_addr_default
(mb));
rxdp[i].read.hdr_addr = 0;
rxdp[i].read.pkt_addr = dma_addr;
}
rxdp[i].read.hdr_addr = 0;
rxdp[i].read.pkt_addr = dma_addr;
}
@@
-1379,7
+1379,7
@@
ixgbe_recv_pkts(void *rx_queue, struct rte_mbuf **rx_pkts,
rxm = rxe->mbuf;
rxe->mbuf = nmb;
dma_addr =
rxm = rxe->mbuf;
rxe->mbuf = nmb;
dma_addr =
- rte_cpu_to_le_64(
RTE_MBUF_DATA_DMA_ADDR_DEFAULT
(nmb));
+ rte_cpu_to_le_64(
rte_mbuf_data_dma_addr_default
(nmb));
rxdp->read.hdr_addr = 0;
rxdp->read.pkt_addr = dma_addr;
rxdp->read.hdr_addr = 0;
rxdp->read.pkt_addr = dma_addr;
@@
-1672,7
+1672,7
@@
next_desc:
if (!bulk_alloc) {
__le64 dma =
if (!bulk_alloc) {
__le64 dma =
- rte_cpu_to_le_64(
RTE_MBUF_DATA_DMA_ADDR_DEFAULT
(nmb));
+ rte_cpu_to_le_64(
rte_mbuf_data_dma_addr_default
(nmb));
/*
* Update RX descriptor with the physical address of the
* new data buffer of the new allocated mbuf.
/*
* Update RX descriptor with the physical address of the
* new data buffer of the new allocated mbuf.
@@
-3594,7
+3594,7
@@
ixgbe_alloc_rx_queue_mbufs(struct ixgbe_rx_queue *rxq)
mbuf->port = rxq->port_id;
dma_addr =
mbuf->port = rxq->port_id;
dma_addr =
- rte_cpu_to_le_64(
RTE_MBUF_DATA_DMA_ADDR_DEFAULT
(mbuf));
+ rte_cpu_to_le_64(
rte_mbuf_data_dma_addr_default
(mbuf));
rxd = &rxq->rx_ring[i];
rxd->read.hdr_addr = 0;
rxd->read.pkt_addr = dma_addr;
rxd = &rxq->rx_ring[i];
rxd->read.hdr_addr = 0;
rxd->read.pkt_addr = dma_addr;