diff options
author | Damjan Marion <damarion@cisco.com> | 2017-05-11 14:55:43 +0200 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2017-05-11 14:28:05 +0000 |
commit | 6a5be214b95f3ec9f30eab46aa1a21a62a7bbc85 (patch) | |
tree | 2f9d4fc1ee0c7ea3337e57be77cc537b0d6d30d5 /src/plugins/dpdk/device/device.c | |
parent | 11c0549fee379a170f18d9e427ce87bb6965ddaf (diff) |
dpdk: bump to dpdk 17.05
Change-Id: I19744387859129c6b8dc104041af158bf5f1d988
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins/dpdk/device/device.c')
-rw-r--r-- | src/plugins/dpdk/device/device.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/dpdk/device/device.c b/src/plugins/dpdk/device/device.c index 465a5874cf2..51d6eacbeb4 100644 --- a/src/plugins/dpdk/device/device.c +++ b/src/plugins/dpdk/device/device.c @@ -254,7 +254,11 @@ static_always_inline &tx_vector[tx_tail], tx_head - tx_tail); rv = rte_ring_sp_enqueue_burst (hqos->swq, (void **) &tx_vector[tx_tail], +#if RTE_VERSION >= RTE_VERSION_NUM(17, 5, 0, 0) + (uint16_t) (tx_head - tx_tail), 0); +#else (uint16_t) (tx_head - tx_tail)); +#endif } else if (PREDICT_TRUE (xd->flags & DPDK_DEVICE_FLAG_PMD)) { |