]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: fix dpdk runtime issue based on spdk/dpdk libarary 19559/head
authorchunmei Liu <chunmei.liu@intel.com>
Sat, 16 Dec 2017 18:45:32 +0000 (10:45 -0800)
committerchunmei Liu <chunmei.liu@intel.com>
Thu, 4 Jan 2018 21:38:54 +0000 (13:38 -0800)
commitc9051fbad38f3ce31cad41e3cadb9447e395630a
tree7deaeb3358a94a9fe7ed7507ba9da389d2fa413f
parent7459713cf57cb7ab9cbfffc0234bf029339dae0b
osd: fix dpdk runtime issue based on spdk/dpdk libarary

1.misunderstand mbuf_overhead before, so correct it.
2.spdk/dpdk library will set refcnt, so needn't set it here.
3.avoid dpdk library modification. when create memory pool set elt_size as
mbuf_overhead + mbuf_data_size to avoid dpdk library check size assert.
4. call rte_pktmbuf_prefree_seg to set mbuf->next = null avoid dpdk/lib
modification .
5. use memzon to allocate mbuf data part, so these data buf can be
processes the same way as mbuf allocated by mempool create.

Signed-off-by: chunmei Liu <chunmei.liu@intel.com>
src/msg/async/dpdk/DPDK.cc
src/msg/async/dpdk/DPDK.h