[05/12] crypto/cnxk: use SSO PF func of inline device in inst
Checks
Commit Message
From: Anoob Joseph <anoobj@marvell.com>
RVU PF FUNC of the CPT LF need not be set as the hardware would
determine that. Instead SSO PF FUNC need to be set as inline device so
that critical errors would reach inline device.
Signed-off-by: Anoob Joseph <anoobj@marvell.com>
---
drivers/crypto/cnxk/cn10k_cryptodev_ops.c | 2 +-
drivers/crypto/cnxk/cnxk_cryptodev.h | 2 +-
drivers/crypto/cnxk/cnxk_cryptodev_ops.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
@@ -1418,7 +1418,7 @@ cn10k_cryptodev_sec_inb_rx_inject(void *dev, struct rte_mbuf **pkts,
fc_addr = vf->rx_inj_lmtline.fc_addr;
ROC_LMT_BASE_ID_GET(lmt_base, lmt_id);
- pf_func = vf->rx_inj_pf_func;
+ pf_func = vf->rx_inj_sso_pf_func;
const uint32_t fc_thresh = vf->rx_inj_lmtline.fc_thresh;
@@ -22,7 +22,7 @@
*/
struct cnxk_cpt_vf {
struct roc_cpt_lmtline rx_inj_lmtline;
- uint16_t rx_inj_pf_func;
+ uint16_t rx_inj_sso_pf_func;
uint16_t *rx_chan_base;
struct roc_cpt cpt;
struct rte_cryptodev_capabilities crypto_caps[CNXK_CPT_MAX_CAPS];
@@ -483,7 +483,7 @@ cnxk_cpt_queue_pair_setup(struct rte_cryptodev *dev, uint16_t qp_id,
goto exit;
}
- vf->rx_inj_pf_func = qp->lf.pf_func;
+ vf->rx_inj_sso_pf_func = roc_idev_nix_inl_dev_pffunc_get();
/* Block the queue for other submissions */
qp->pend_q.pq_mask = 0;