X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fplugins%2Fdpdk%2Fcryptodev%2Fcryptodev_op_data_path.c;h=29af2fa1994d5ae5ab3e6bd9b71f24b3c55001e4;hb=feda2ff640e3b928e6489be192cba2a7da048cce;hp=4e4295a9041f35432103f3e0bf8f43fa8ea876e2;hpb=6d4b3fd19c45de81026c6a3a468bd9a5b59ebb5f;p=vpp.git diff --git a/src/plugins/dpdk/cryptodev/cryptodev_op_data_path.c b/src/plugins/dpdk/cryptodev/cryptodev_op_data_path.c index 4e4295a9041..29af2fa1994 100644 --- a/src/plugins/dpdk/cryptodev/cryptodev_op_data_path.c +++ b/src/plugins/dpdk/cryptodev/cryptodev_op_data_path.c @@ -515,10 +515,13 @@ cryptodev_frame_dequeue_internal (vlib_main_t *vm, u32 *nb_elts_processed, fe[2].status = cryptodev_status_conversion[cop[2]->op.status]; fe[3].status = cryptodev_status_conversion[cop[3]->op.status]; - err0 |= (fe[0].status == VNET_CRYPTO_OP_STATUS_COMPLETED) << n; - err1 |= (fe[1].status == VNET_CRYPTO_OP_STATUS_COMPLETED) << (n + 1); - err2 |= (fe[2].status == VNET_CRYPTO_OP_STATUS_COMPLETED) << (n + 2); - err3 |= (fe[3].status == VNET_CRYPTO_OP_STATUS_COMPLETED) << (n + 3); + err0 |= ((u64) (fe[0].status == VNET_CRYPTO_OP_STATUS_COMPLETED)) << n; + err1 |= ((u64) (fe[1].status == VNET_CRYPTO_OP_STATUS_COMPLETED)) + << (n + 1); + err2 |= ((u64) (fe[2].status == VNET_CRYPTO_OP_STATUS_COMPLETED)) + << (n + 2); + err3 |= ((u64) (fe[3].status == VNET_CRYPTO_OP_STATUS_COMPLETED)) + << (n + 3); cop += 4; fe += 4;