From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5297DA0C41; Sat, 9 Oct 2021 12:03:21 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C690140040; Sat, 9 Oct 2021 12:03:20 +0200 (CEST) Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by mails.dpdk.org (Postfix) with ESMTP id 992704003C for ; Sat, 9 Oct 2021 12:03:18 +0200 (CEST) Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4HRL9f07M3zYdpN; Sat, 9 Oct 2021 17:58:46 +0800 (CST) Received: from dggpeml500024.china.huawei.com (7.185.36.10) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Sat, 9 Oct 2021 18:03:09 +0800 Received: from [127.0.0.1] (10.67.100.224) by dggpeml500024.china.huawei.com (7.185.36.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Sat, 9 Oct 2021 18:03:09 +0800 From: fengchengwen To: , , , , , CC: , , , , , , , , , , , References: <1625231891-2963-1-git-send-email-fengchengwen@huawei.com> <20211009093340.43237-1-fengchengwen@huawei.com> <20211009093340.43237-4-fengchengwen@huawei.com> Message-ID: <12b7426c-70cb-9198-083f-14e1bb67f1c7@huawei.com> Date: Sat, 9 Oct 2021 18:03:09 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <20211009093340.43237-4-fengchengwen@huawei.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.100.224] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpeml500024.china.huawei.com (7.185.36.10) X-CFilter-Loop: Reflected Subject: Re: [dpdk-dev] [PATCH v24 3/6] dmadev: add data plane API support X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This patch follows the idea of Konstantin, and introduces rte_dma_fp_object to hide implementation detail. This change modify the first parameter of drivers's dataplane interface: from 'struct rte_dma_dev *dev' to 'void *dev_private'. On 2021/10/9 17:33, Chengwen Feng wrote: > This patch add data plane API for dmadev. > > Signed-off-by: Chengwen Feng > Acked-by: Bruce Richardson > Acked-by: Morten Brørup > Reviewed-by: Kevin Laatz > Reviewed-by: Conor Walsh > --- > doc/guides/prog_guide/dmadev.rst | 22 ++ > doc/guides/rel_notes/release_21_11.rst | 2 +- > lib/dmadev/meson.build | 1 + > lib/dmadev/rte_dmadev.c | 134 ++++++++ > lib/dmadev/rte_dmadev.h | 451 +++++++++++++++++++++++++ > lib/dmadev/rte_dmadev_core.h | 78 +++++ > lib/dmadev/rte_dmadev_pmd.h | 7 + > lib/dmadev/version.map | 6 + > 8 files changed, 700 insertions(+), 1 deletion(-) > create mode 100644 lib/dmadev/rte_dmadev_core.h > [snip]