env/dpdk: return value changed of API rte_ring_mp_enqueue_bulk for DPDK 17.05
Change-Id: I44f1c1fc75fd343d30c602ca77940ebde3ed184a Signed-off-by: Changpeng Liu <changpeng.liu@intel.com>
This commit is contained in:
parent
58afa58a00
commit
6c0d4c552b
@ -287,15 +287,15 @@ spdk_ring_enqueue(struct spdk_ring *ring, void **objs, size_t count)
|
|||||||
int rc;
|
int rc;
|
||||||
#if RTE_VERSION < RTE_VERSION_NUM(17, 5, 0, 0)
|
#if RTE_VERSION < RTE_VERSION_NUM(17, 5, 0, 0)
|
||||||
rc = rte_ring_mp_enqueue_bulk((struct rte_ring *)ring, objs, count);
|
rc = rte_ring_mp_enqueue_bulk((struct rte_ring *)ring, objs, count);
|
||||||
#else
|
|
||||||
rc = rte_ring_mp_enqueue_bulk((struct rte_ring *)ring, objs, count, NULL);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (rc == 0) {
|
if (rc == 0) {
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
#else
|
||||||
|
rc = rte_ring_mp_enqueue_bulk((struct rte_ring *)ring, objs, count, NULL);
|
||||||
|
return rc;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t
|
size_t
|
||||||
|
Loading…
Reference in New Issue
Block a user