From: Kefu Chai Date: Wed, 13 Dec 2017 06:55:15 +0000 (+0800) Subject: msg/async: update to work with dpdk shipped with spdk v17.10 X-Git-Tag: v13.0.2~785^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F19470%2Fhead;p=ceph.git msg/async: update to work with dpdk shipped with spdk v17.10 Signed-off-by: Kefu Chai --- diff --git a/src/msg/async/dpdk/DPDK.cc b/src/msg/async/dpdk/DPDK.cc index 597f1d51ebd0..42da69af8444 100644 --- a/src/msg/async/dpdk/DPDK.cc +++ b/src/msg/async/dpdk/DPDK.cc @@ -845,7 +845,7 @@ void DPDKQueuePair::process_packets( // Set stipped VLAN value if available if ((_dev->_dev_info.rx_offload_capa & DEV_RX_OFFLOAD_VLAN_STRIP) && - (m->ol_flags & PKT_RX_VLAN_PKT)) { + (m->ol_flags & PKT_RX_VLAN_STRIPPED)) { oi.vlan_tci = m->vlan_tci; } diff --git a/src/msg/async/dpdk/DPDK.h b/src/msg/async/dpdk/DPDK.h index 3d65a4fe0af3..3c5c924eaa30 100644 --- a/src/msg/async/dpdk/DPDK.h +++ b/src/msg/async/dpdk/DPDK.h @@ -301,7 +301,7 @@ class DPDKQueuePair { // devices have a 15.5K limitation on a maximum single fragment // size. // - phys_addr_t pa = rte_malloc_virt2phy(va); + rte_iova_t pa = rte_malloc_virt2iova(va); if (!pa) return copy_one_data_buf(qp, m, va, buf_len); @@ -626,7 +626,7 @@ class DPDKQueuePair { // actual data buffer. // m->buf_addr = (char*)data - RTE_PKTMBUF_HEADROOM; - m->buf_physaddr = rte_malloc_virt2phy(data) - RTE_PKTMBUF_HEADROOM; + m->buf_physaddr = rte_malloc_virt2iova(data) - RTE_PKTMBUF_HEADROOM; return true; }