diff options
author | Luc Provoost <luc.provoost@gmail.com> | 2023-04-17 14:59:56 +0200 |
---|---|---|
committer | Luc Provoost <luc.provoost@gmail.com> | 2023-04-17 14:59:56 +0200 |
commit | 6f7924d8a6c3bd8e75ef361c8f34859aed56c061 (patch) | |
tree | 082fcab72440a02618e9922638d34e09b8f9c3bf | |
parent | 6aa498d0effe872c15dd55fa5792a04b2ee550d6 (diff) |
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 <luc.provoost@gmail.com>
Change-Id: I97793261dd52aa869a4857716518dc1ff7d5f22f
-rw-r--r-- | VNFs/DPPD-PROX/handle_esp.c | 8 |
1 files changed, 0 insertions, 8 deletions
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}; |