mbuf: rename physical address to IOVA
[dpdk.git] / drivers / net / dpaa / dpaa_rxtx.c
index 0433f3b..41e57f2 100644 (file)
@@ -39,7 +39,6 @@
 #include <sched.h>
 #include <pthread.h>
 
-#include <rte_config.h>
 #include <rte_byteorder.h>
 #include <rte_common.h>
 #include <rte_interrupts.h>
@@ -49,7 +48,6 @@
 #include <rte_atomic.h>
 #include <rte_branch_prediction.h>
 #include <rte_memory.h>
-#include <rte_memzone.h>
 #include <rte_tailq.h>
 #include <rte_eal.h>
 #include <rte_alarm.h>
@@ -79,7 +77,7 @@
                (_fd)->opaque = QM_FD_CONTIG << DPAA_FD_FORMAT_SHIFT; \
                (_fd)->opaque |= ((_mbuf)->data_off) << DPAA_FD_OFFSET_SHIFT; \
                (_fd)->opaque |= (_mbuf)->pkt_len; \
-               (_fd)->addr = (_mbuf)->buf_physaddr; \
+               (_fd)->addr = (_mbuf)->buf_iova; \
                (_fd)->bpid = _bpid; \
        } while (0)
 
@@ -219,7 +217,7 @@ static inline void dpaa_eth_packet_info(struct rte_mbuf *m,
 
        /* Check if Vlan is present */
        if (prs & DPAA_PARSE_VLAN_MASK)
-               m->ol_flags |= PKT_RX_VLAN_PKT;
+               m->ol_flags |= PKT_RX_VLAN;
        /* Packet received without stripping the vlan */
 }
 
@@ -516,7 +514,7 @@ dpaa_eth_mbuf_to_sg_fd(struct rte_mbuf *mbuf,
 
        sgt = temp->buf_addr + temp->data_off;
        fd->format = QM_FD_SG;
-       fd->addr = temp->buf_physaddr;
+       fd->addr = temp->buf_iova;
        fd->offset = temp->data_off;
        fd->bpid = bpid;
        fd->length20 = mbuf->pkt_len;
@@ -525,7 +523,7 @@ dpaa_eth_mbuf_to_sg_fd(struct rte_mbuf *mbuf,
                sg_temp = &sgt[i++];
                sg_temp->opaque = 0;
                sg_temp->val = 0;
-               sg_temp->addr = cur_seg->buf_physaddr;
+               sg_temp->addr = cur_seg->buf_iova;
                sg_temp->offset = cur_seg->data_off;
                sg_temp->length = cur_seg->data_len;
                if (RTE_MBUF_DIRECT(cur_seg)) {