crypto/ipsec_mb: fix queue setup in secondary process
If a secondary process is using a queue pair that has been setup by the
primary process, we need to reset mb_mgr pointers.
This commit removes an error return in this case, allowing secondary to
do the remaining setup for the existing qp.
Fixes: b35848bc01
("crypto/ipsec_mb: add multi-process IPC request handler")
Signed-off-by: Ciara Power <ciara.power@intel.com>
Acked-by: Kai Ji <kai.ji@intel.com>
This commit is contained in:
parent
f044948d45
commit
e0e095d314
@ -274,9 +274,6 @@ ipsec_mb_qp_setup(struct rte_cryptodev *dev, uint16_t qp_id,
|
||||
return ipsec_mb_secondary_qp_op(dev->data->dev_id, qp_id,
|
||||
qp_conf, socket_id, RTE_IPSEC_MB_MP_REQ_QP_SET);
|
||||
}
|
||||
|
||||
IPSEC_MB_LOG(ERR, "Queue pair already setup'ed.");
|
||||
return -EINVAL;
|
||||
} else {
|
||||
/* Free memory prior to re-allocation if needed. */
|
||||
if (dev->data->queue_pairs[qp_id] != NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user