From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 770E2425B7;
	Wed, 27 Sep 2023 20:23:37 +0200 (CEST)
Received: from mails.dpdk.org (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id 05FE040271;
	Wed, 27 Sep 2023 20:23:37 +0200 (CEST)
Received: from mail-vs1-f50.google.com (mail-vs1-f50.google.com
 [209.85.217.50]) by mails.dpdk.org (Postfix) with ESMTP id D5B084026B
 for <dev@dpdk.org>; Wed, 27 Sep 2023 20:23:35 +0200 (CEST)
Received: by mail-vs1-f50.google.com with SMTP id
 ada2fe7eead31-45260b91a29so5540892137.2
 for <dev@dpdk.org>; Wed, 27 Sep 2023 11:23:35 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1695839015; x=1696443815; darn=dpdk.org;
 h=content-transfer-encoding:cc:to:subject:message-id:date:from
 :in-reply-to:references:mime-version:from:to:cc:subject:date
 :message-id:reply-to;
 bh=cvDgdU2jZu5mVIvSzJrtR41nexD4DCGpP45YOMnJMhA=;
 b=G60TSWnEJRjZk6oJODjO/f7JHFsa9WGHUjFOMoYtClw1cRg6NysopKGiocGh6o9c4l
 tCusy2YVMu0BmcJ3S/ZEy+VbrP75bL2WaXLLVofOiPy6/TfGCdmQIqQ4Osy3l3tF6a84
 6bRuGw8NwP3N7hEg7mdBhhwszBcaC37DWLa5z2I3xqbF1k6/qNLFc/ma42/Bdj2P/AxZ
 +bRqbyYRjPYA0oZ4Hvyhy/nzGE6/Lwen1riBeNaruZP+zf5a1orFzVSqeSo01HM61eNQ
 QiBf6iLfahRjv2Z/h8rRB0+kXR04Eov+aVGeg/PRQKIJVH4VrlEphTxeYNeqAGD3mwJ2
 UWLw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1695839015; x=1696443815;
 h=content-transfer-encoding:cc:to:subject:message-id:date:from
 :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=cvDgdU2jZu5mVIvSzJrtR41nexD4DCGpP45YOMnJMhA=;
 b=Bsxf+Xpg8BSTaAMuNwDqmwGLhUbw8WP0KIIeO0i7Ow1XiTRZLPwy6On5LBFc2TWGMk
 PQ2/4th72R/0o2BYT75oipujHUu2U8sSE6u11+gwJcj/OPDjaWEU0oaN577jLLTsoHPf
 wZf2P+ygA/spk+AUCq/NVzQ1shFc531nX4fI8fOCbobJV6oWyZ2ejXLa7hOnjdMAL4LG
 W1XfX3QFwx/TR6pCTBF4DHU+CWKLQZz4awfRKNqh2yz4dHLNkuRXP1FqHAcQuJx5hEPo
 QcHN56eY43ovmpk9v5BksZh44e22oTUrawQysVwkHsTyoHmqI/CUZihVz447XXHQps1O
 07oQ==
X-Gm-Message-State: AOJu0Yz1TcGtrJSlv9oPp6drt/ZxU1FzBz7Txz0NM6PZbbelZKZ3LnTU
 4DBsXs2VMPtuq0wtUa1OAhTfSdC69bLtvq4gIn4=
X-Google-Smtp-Source: AGHT+IHSR0WFE7a9ZZCfFdi5+y6UkadB2AksNQihv0BhNsqV0nqQfTxSvYa8GrnxXz+DQ71QtRfw0uMTdid8Em9UFXg=
X-Received: by 2002:a05:6102:497:b0:452:6465:4a35 with SMTP id
 n23-20020a056102049700b0045264654a35mr2560854vsa.11.1695839015211; Wed, 27
 Sep 2023 11:23:35 -0700 (PDT)
MIME-Version: 1.0
References: <20230923133449.3780841-1-amitprakashs@marvell.com>
 <20230926103233.3956431-1-amitprakashs@marvell.com>
 <20230926103233.3956431-4-amitprakashs@marvell.com>
In-Reply-To: <20230926103233.3956431-4-amitprakashs@marvell.com>
From: Jerin Jacob <jerinjacobk@gmail.com>
Date: Wed, 27 Sep 2023 23:53:08 +0530
Message-ID: <CALBAE1O58ySCyGAXdbNWvNWR4SLCLZrWPx88G=cpp44+a=PBnA@mail.gmail.com>
Subject: Re: [PATCH v4 03/12] eventdev: create and free API for DMA adapter
To: Amit Prakash Shukla <amitprakashs@marvell.com>
Cc: Bruce Richardson <bruce.richardson@intel.com>,
 Jerin Jacob <jerinj@marvell.com>, dev@dpdk.org, 
 fengchengwen@huawei.com, kevin.laatz@intel.com, conor.walsh@intel.com, 
 vattunuru@marvell.com, g.singh@nxp.com, sachin.saxena@oss.nxp.com, 
 hemant.agrawal@nxp.com, cheng1.jiang@intel.com, ndabilpuram@marvell.com, 
 anoobj@marvell.com, mb@smartsharesystems.com
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org

On Tue, Sep 26, 2023 at 6:31=E2=80=AFPM Amit Prakash Shukla
<amitprakashs@marvell.com> wrote:
>
> Added API support to create and free DMA adapter. Create function shall b=
e
> called with event device to be associated with the adapter and port
> configuration to setup an event port.
>
> Signed-off-by: Amit Prakash Shukla <amitprakashs@marvell.com>
> ---
>  config/rte_config.h                  |   1 +
>  lib/eventdev/meson.build             |   1 +
>  lib/eventdev/rte_event_dma_adapter.c | 335 +++++++++++++++++++++++++++
>  3 files changed, 337 insertions(+)
>  create mode 100644 lib/eventdev/rte_event_dma_adapter.c
>
> diff --git a/config/rte_config.h b/config/rte_config.h
> index 400e44e3cf..401727703f 100644
> --- a/config/rte_config.h
> +++ b/config/rte_config.h
> @@ -77,6 +77,7 @@
>  #define RTE_EVENT_ETH_INTR_RING_SIZE 1024
>  #define RTE_EVENT_CRYPTO_ADAPTER_MAX_INSTANCE 32
>  #define RTE_EVENT_ETH_TX_ADAPTER_MAX_INSTANCE 32
> +#define RTE_EVENT_DMA_ADAPTER_MAX_INSTANCE 32
>
>  /* rawdev defines */
>  #define RTE_RAWDEV_MAX_DEVS 64
> diff --git a/lib/eventdev/meson.build b/lib/eventdev/meson.build
> index b46bbbc9aa..250abcb154 100644
> --- a/lib/eventdev/meson.build
> +++ b/lib/eventdev/meson.build
> @@ -17,6 +17,7 @@ sources =3D files(
>          'eventdev_private.c',
>          'eventdev_trace_points.c',
>          'rte_event_crypto_adapter.c',
> +        'rte_event_dma_adapter.c',
>          'rte_event_eth_rx_adapter.c',
>          'rte_event_eth_tx_adapter.c',
>          'rte_event_ring.c',
> diff --git a/lib/eventdev/rte_event_dma_adapter.c b/lib/eventdev/rte_even=
t_dma_adapter.c
> new file mode 100644
> index 0000000000..c7ffba1b47
> --- /dev/null
> +++ b/lib/eventdev/rte_event_dma_adapter.c
> @@ -0,0 +1,335 @@
> +/* SPDX-License-Identifier: BSD-3-Clause
> + * Copyright (c) 2023 Marvell.
> + */
> +
> +#include "rte_eventdev.h"
> +#include "eventdev_pmd.h"

Move this to another block.

> +#include "rte_event_dma_adapter.h"
> +