From: Radha Mohan <mohun106@gmail.com>
To: Satha Koteswara Rao Kottidi <skoteshwar@marvell.com>,
Thomas Monjalon <thomas@monjalon.net>,
dev@dpdk.org, David Marchand <david.marchand@redhat.com>
Cc: Radha Chintakuntla <radhac@marvell.com>,
Jerin Jacob Kollanukkaran <jerinj@marvell.com>,
Satananda Burla <sburla@marvell.com>
Subject: Re: [dpdk-dev] [PATCH RESEND 1/2] raw/octeontx2_dma: Assign pem_id as lport for non-internal DMA
Date: Fri, 9 Oct 2020 11:18:18 -0700 [thread overview]
Message-ID: <CAC8NTUW3+kZjWjECn5CB0mi0QT3JyzqHk5t-stk15Sw4FoKbXg@mail.gmail.com> (raw)
In-Reply-To: <BYAPR18MB2918FB1C1A76267DF01BD736C10A0@BYAPR18MB2918.namprd18.prod.outlook.com>
On Wed, Oct 7, 2020 at 10:33 AM Satha Koteswara Rao Kottidi
<skoteshwar@marvell.com> wrote:
>
>
>
> -----Original Message-----
> From: Radha Mohan Chintakuntla <radhac@marvell.com>
> Sent: Tuesday, October 6, 2020 11:00 AM
> To: dev@dpdk.org; Satha Koteswara Rao Kottidi <skoteshwar@marvell.com>
> Cc: Jerin Jacob Kollanukkaran <jerinj@marvell.com>; Radha Chintakuntla <radhac@marvell.com>; Satananda Burla <sburla@marvell.com>
> Subject: [PATCH RESEND 1/2] raw/octeontx2_dma: Assign pem_id as lport for non-internal DMA
>
> DPI needs to know the PEM number for all external transfers.
>
> Signed-off-by: Radha Mohan Chintakuntla <radhac@marvell.com>
> Reviewed-by: Satha Koteswara Rao Kottidi <skoteshwar@marvell.com>
> Reviewed-by: Satananda Burla <sburla@marvell.com>
> ---
>
> drivers/raw/octeontx2_dma/otx2_dpi_rawdev.c | 2 ++ drivers/raw/octeontx2_dma/otx2_dpi_rawdev.h | 1 +
> 2 files changed, 3 insertions(+)
>
> diff --git a/drivers/raw/octeontx2_dma/otx2_dpi_rawdev.c b/drivers/raw/octeontx2_dma/otx2_dpi_rawdev.c
> index 5b496446c..a1b94ce1d 100644
> --- a/drivers/raw/octeontx2_dma/otx2_dpi_rawdev.c
> +++ b/drivers/raw/octeontx2_dma/otx2_dpi_rawdev.c
> @@ -201,6 +201,8 @@ otx2_dpi_rawdev_enqueue_bufs(struct rte_rawdev *dev,
> index += 4;
> hdr->s.fport = 0;
> hdr->s.lport = 0;
> + if (ctx->xtype != DPI_XTYPE_INTERNAL_ONLY)
> + hdr->s.lport = ctx->pem_id;
>
> /* For inbound case, src pointers are last pointers.
> * For all other cases, src pointers are first pointers.
> diff --git a/drivers/raw/octeontx2_dma/otx2_dpi_rawdev.h b/drivers/raw/octeontx2_dma/otx2_dpi_rawdev.h
> index 9ebb25988..81740e84b 100644
> --- a/drivers/raw/octeontx2_dma/otx2_dpi_rawdev.h
> +++ b/drivers/raw/octeontx2_dma/otx2_dpi_rawdev.h
> @@ -140,6 +140,7 @@ struct dpi_dma_queue_ctx_s {
> uint16_t req_type:2;
> uint16_t use_lock:1;
> uint16_t deallocv;
> + uint16_t pem_id;
>
> struct dpi_cring_data_s *c_ring;
> };
> --
> 2.24.1
>
> Acked-by: Satha Rao <skoteshwar@marvell.com>
David/Thomas,
Could you please pick this series for main.
regards,
Radha Mohan
next prev parent reply other threads:[~2020-10-09 18:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-06 5:30 Radha Mohan Chintakuntla
2020-10-06 5:30 ` [dpdk-dev] [PATCH RESEND 2/2] raw/octeontx2_dma: Add support in case of multiple DPI blocks Radha Mohan Chintakuntla
2020-10-07 16:43 ` Satha Koteswara Rao Kottidi
2020-10-07 16:43 ` [dpdk-dev] [PATCH RESEND 1/2] raw/octeontx2_dma: Assign pem_id as lport for non-internal DMA Satha Koteswara Rao Kottidi
2020-10-09 18:18 ` Radha Mohan [this message]
2020-10-11 19:57 ` Thomas Monjalon
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=CAC8NTUW3+kZjWjECn5CB0mi0QT3JyzqHk5t-stk15Sw4FoKbXg@mail.gmail.com \
--to=mohun106@gmail.com \
--cc=david.marchand@redhat.com \
--cc=dev@dpdk.org \
--cc=jerinj@marvell.com \
--cc=radhac@marvell.com \
--cc=sburla@marvell.com \
--cc=skoteshwar@marvell.com \
--cc=thomas@monjalon.net \
/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).