aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/dpdk/cryptodev
diff options
context:
space:
mode:
authorFan Zhang <roy.fan.zhang@intel.com>2021-05-27 13:24:52 +0100
committerDamjan Marion <dmarion@me.com>2021-05-27 19:38:04 +0000
commit9303b10897324d5af1645ed3069303328221dd93 (patch)
treef67340f151416144b509ea12870b66bec3855667 /src/plugins/dpdk/cryptodev
parent005605f9b4db0b98c720fc4a9d8fbd9087a6ad83 (diff)
dpdk: bump to 21.05
Type: feature This patch bumps DPDK version to 21.05 and updated VPP to accomodate the changes in DPDK latest version. Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com> Change-Id: If217441f70c9ab531196dca7ec7a486ec9931cff
Diffstat (limited to 'src/plugins/dpdk/cryptodev')
-rw-r--r--src/plugins/dpdk/cryptodev/cryptodev_raw_data_path.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/plugins/dpdk/cryptodev/cryptodev_raw_data_path.c b/src/plugins/dpdk/cryptodev/cryptodev_raw_data_path.c
index 40e020f0b37..c045d78ecb1 100644
--- a/src/plugins/dpdk/cryptodev/cryptodev_raw_data_path.c
+++ b/src/plugins/dpdk/cryptodev/cryptodev_raw_data_path.c
@@ -514,9 +514,16 @@ cryptodev_raw_dequeue (vlib_main_t *vm, u32 *nb_elts_processed,
if (!inflight || no_job_to_deq || !n_room_left)
goto end_deq;
+#if RTE_VERSION >= RTE_VERSION_NUM(21, 5, 0, 0)
+ n_deq = rte_cryptodev_raw_dequeue_burst (
+ cet->ctx, cryptodev_get_frame_n_elts, 0, cryptodev_post_dequeue,
+ (void **) &frame, 0, &n_success, &dequeue_status);
+#else
n_deq = rte_cryptodev_raw_dequeue_burst (
cet->ctx, cryptodev_get_frame_n_elts, cryptodev_post_dequeue,
(void **) &frame, 0, &n_success, &dequeue_status);
+#endif
+
if (!n_deq)
goto end_deq;
@@ -541,9 +548,15 @@ cryptodev_raw_dequeue (vlib_main_t *vm, u32 *nb_elts_processed,
/* see if we can dequeue more */
while (inflight && n_room_left && !no_job_to_deq)
{
+#if RTE_VERSION >= RTE_VERSION_NUM(21, 5, 0, 0)
+ n_deq = rte_cryptodev_raw_dequeue_burst (
+ cet->ctx, cryptodev_get_frame_n_elts, 0, cryptodev_post_dequeue,
+ (void **) &frame, 0, &n_success, &dequeue_status);
+#else
n_deq = rte_cryptodev_raw_dequeue_burst (
cet->ctx, cryptodev_get_frame_n_elts, cryptodev_post_dequeue,
(void **) &frame, 0, &n_success, &dequeue_status);
+#endif
if (!n_deq)
break;
inflight -= n_deq;