]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
msg/async: update to work with dpdk shipped with spdk v17.10 19470/head
authorKefu Chai <kchai@redhat.com>
Wed, 13 Dec 2017 06:55:15 +0000 (14:55 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 13 Dec 2017 06:55:15 +0000 (14:55 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/msg/async/dpdk/DPDK.cc
src/msg/async/dpdk/DPDK.h

index 597f1d51ebd06e52407841a16e7b1f7935a481da..42da69af8444e16d3f923311c025079b43f1968b 100644 (file)
@@ -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;
     }
 
index 3d65a4fe0af364ee69d17ab874e7d2c54b87821f..3c5c924eaa30aed29d747cb4b5eaae662b5f5a82 100644 (file)
@@ -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;
   }