vhost: make SPDK compile with dpdk-17.05 with vhost patches
Signed-off-by: Piotr Pelplinski <piotr.pelplinski@intel.com> Signed-off-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com> Change-Id: Iff659bb3df9df92c4b6aa9aeaef7244bdf5b3211 Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
This commit is contained in:
parent
b3cc183a53
commit
c2c995c5b0
@ -48,6 +48,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <rte_config.h>
|
#include <rte_config.h>
|
||||||
|
#include <rte_version.h>
|
||||||
#include <rte_ring.h>
|
#include <rte_ring.h>
|
||||||
|
|
||||||
#include "spdk/log.h"
|
#include "spdk/log.h"
|
||||||
@ -192,8 +193,11 @@ _spdk_event_queue_run_batch(struct spdk_reactor *reactor)
|
|||||||
*/
|
*/
|
||||||
memset(events, 0, sizeof(events));
|
memset(events, 0, sizeof(events));
|
||||||
#endif
|
#endif
|
||||||
|
#if RTE_VERSION < RTE_VERSION_NUM(17,5,0,0)
|
||||||
count = rte_ring_sc_dequeue_burst(reactor->events, events, SPDK_EVENT_BATCH_SIZE);
|
count = rte_ring_sc_dequeue_burst(reactor->events, events, SPDK_EVENT_BATCH_SIZE);
|
||||||
|
#else
|
||||||
|
count = rte_ring_sc_dequeue_burst(reactor->events, events, SPDK_EVENT_BATCH_SIZE, NULL);
|
||||||
|
#endif
|
||||||
if (count == 0) {
|
if (count == 0) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user