[dpdk-dev] [PATCH v2 2/2] common/cnxk: fix direct rte symbol usage in REE
jerinj at marvell.com
jerinj at marvell.com
Wed Oct 4 14:24:32 CEST 2023
From: Jerin Jacob <jerinj at marvell.com>
The common code is shared between different driver environments,
introduce missing plt_ abstractions of missing rte_ symbols and
use plt symbols to avoid changing roc_* files.
Fixes: c88d3638c7fc ("common/cnxk: support REE")
Cc: stable at dpdk.org
Signed-off-by: Jerin Jacob <jerinj at marvell.com>
---
v2:
- Move REE specific changes to seperate patch to enable backporting as this
change introduced in old release (David)
drivers/common/cnxk/roc_ree.c | 4 ++--
drivers/common/cnxk/roc_ree.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/common/cnxk/roc_ree.c b/drivers/common/cnxk/roc_ree.c
index 1eb2ae7272..b6392658c3 100644
--- a/drivers/common/cnxk/roc_ree.c
+++ b/drivers/common/cnxk/roc_ree.c
@@ -441,7 +441,7 @@ static void
roc_ree_lf_err_intr_unregister(struct roc_ree_vf *vf, uint16_t msix_off,
uintptr_t base)
{
- struct rte_pci_device *pci_dev = vf->pci_dev;
+ struct plt_pci_device *pci_dev = vf->pci_dev;
/* Disable error interrupts */
plt_write64(~0ull, base + REE_LF_MISC_INT_ENA_W1C);
@@ -468,7 +468,7 @@ static int
roc_ree_lf_err_intr_register(struct roc_ree_vf *vf, uint16_t msix_off,
uintptr_t base)
{
- struct rte_pci_device *pci_dev = vf->pci_dev;
+ struct plt_pci_device *pci_dev = vf->pci_dev;
int ret;
/* Disable error interrupts */
diff --git a/drivers/common/cnxk/roc_ree.h b/drivers/common/cnxk/roc_ree.h
index e138e4de66..bf994e7124 100644
--- a/drivers/common/cnxk/roc_ree.h
+++ b/drivers/common/cnxk/roc_ree.h
@@ -68,7 +68,7 @@ struct roc_ree_qp {
/**< Base address where BAR is mapped */
struct roc_ree_pending_queue pend_q;
/**< Pending queue */
- rte_iova_t iq_dma_addr;
+ plt_iova_t iq_dma_addr;
/**< Instruction queue address */
uint32_t roc_regexdev_jobid;
/**< Job ID */
--
2.42.0
More information about the stable
mailing list