From 6f7924d8a6c3bd8e75ef361c8f34859aed56c061 Mon Sep 17 00:00:00 2001 From: Luc Provoost Date: Mon, 17 Apr 2023 14:59:56 +0200 Subject: remove call to rte_cryptodev_pmd_get_dev The handle_esp is not used a lot at this point and it was not compiled by default. When integrating this back into PROX, no DPDK backwards compatibility was taken into account. The rte_cryptodev_pmd_get_dev is not supported any more in recent DPDK versions. Signed-off-by: Luc Provoost Change-Id: I97793261dd52aa869a4857716518dc1ff7d5f22f --- VNFs/DPPD-PROX/handle_esp.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'VNFs') diff --git a/VNFs/DPPD-PROX/handle_esp.c b/VNFs/DPPD-PROX/handle_esp.c index 5ac52822..26536af8 100644 --- a/VNFs/DPPD-PROX/handle_esp.c +++ b/VNFs/DPPD-PROX/handle_esp.c @@ -192,10 +192,6 @@ static void init_task_esp_enc(struct task_base *tbase, struct task_args *targ) int ret = rte_cryptodev_start(task->cdev_id); PROX_PANIC(ret < 0, "Failed to start device\n"); - struct rte_cryptodev *dev; - dev = rte_cryptodev_pmd_get_dev(task->cdev_id); - PROX_PANIC(dev->attached != RTE_CRYPTODEV_ATTACHED, "No ENC cryptodev attached\n"); - //Setup Cipher Parameters struct rte_crypto_sym_xform cipher_xform = {0}; struct rte_crypto_sym_xform auth_xform = {0}; @@ -280,10 +276,6 @@ static void init_task_esp_dec(struct task_base *tbase, struct task_args *targ) int ret = rte_cryptodev_start(task->cdev_id); PROX_PANIC(ret < 0, "Failed to start device\n"); - struct rte_cryptodev *dev; - dev = rte_cryptodev_pmd_get_dev(task->cdev_id); - PROX_PANIC(dev->attached != RTE_CRYPTODEV_ATTACHED, "No ENC cryptodev attached\n"); - //Setup Cipher Parameters struct rte_crypto_sym_xform cipher_xform = {0}; struct rte_crypto_sym_xform auth_xform = {0}; -- cgit 1.2.3-korg