From: <jerinj@marvell.com>
To: <dev@dpdk.org>, Nithin Dabilpuram <ndabilpuram@marvell.com>,
Kiran Kumar K <kirankumark@marvell.com>,
Sunil Kumar Kori <skori@marvell.com>,
Satha Rao <skoteshwar@marvell.com>,
Liron Himi <lironh@marvell.com>, Jerin Jacob <jerinj@marvell.com>
Cc: <david.marchand@redhat.com>, <stable@dpdk.org>
Subject: [dpdk-dev] [PATCH v2 2/2] common/cnxk: fix direct rte symbol usage in REE
Date: Wed, 4 Oct 2023 17:54:32 +0530 [thread overview]
Message-ID: <20231004122432.3255418-2-jerinj@marvell.com> (raw)
In-Reply-To: <20231004122432.3255418-1-jerinj@marvell.com>
From: Jerin Jacob <jerinj@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@dpdk.org
Signed-off-by: Jerin Jacob <jerinj@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
next prev parent reply other threads:[~2023-10-04 12:24 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-03 18:39 [dpdk-dev] [PATCH] common/cnxk: fix direct rte symbol usage jerinj
2023-10-04 4:39 ` Nithin Dabilpuram
2023-10-04 6:03 ` David Marchand
2023-10-04 6:41 ` Jerin Jacob
2023-10-04 7:36 ` David Marchand
2023-10-04 7:47 ` Jerin Jacob
2023-10-04 12:24 ` [dpdk-dev] [PATCH v2 1/2] " jerinj
2023-10-04 12:24 ` jerinj [this message]
2023-10-05 14:17 ` [dpdk-dev] [PATCH v2 2/2] common/cnxk: fix direct rte symbol usage in REE Jerin Jacob
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231004122432.3255418-2-jerinj@marvell.com \
--to=jerinj@marvell.com \
--cc=david.marchand@redhat.com \
--cc=dev@dpdk.org \
--cc=kirankumark@marvell.com \
--cc=lironh@marvell.com \
--cc=ndabilpuram@marvell.com \
--cc=skori@marvell.com \
--cc=skoteshwar@marvell.com \
--cc=stable@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).