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 6BFDEA0C49; Wed, 16 Jun 2021 14:15:11 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DD1FA4067A; Wed, 16 Jun 2021 14:15:10 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mails.dpdk.org (Postfix) with ESMTP id 74ED340140 for ; Wed, 16 Jun 2021 14:15:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1623845708; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=GOUXu9ZrMsMSd3BbBbz59KL53pbm+9mD3jvAJhxHxm8=; b=COXJSCZY1zSSxKjwKDKlVaefNV686ya+9lpSEgB9HEH9Td2uBbChnfhxiMLlW+KSPsSjtJ tlNEBcliucQ9K9HLFbfeSi1QbDazy6+l5NeKx1QCJHDfobbAhp5Rnyc8MoHWQFC6gWOuEE nF9yHBKHjHPzgPixW+ra9/5FNbMWPaw= Received: from mail-vs1-f71.google.com (mail-vs1-f71.google.com [209.85.217.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-599-CFrdh9y-M0Cln8xiafOC4g-1; Wed, 16 Jun 2021 08:15:06 -0400 X-MC-Unique: CFrdh9y-M0Cln8xiafOC4g-1 Received: by mail-vs1-f71.google.com with SMTP id x76-20020a677c4f0000b0290258a100e1c0so130649vsc.17 for ; Wed, 16 Jun 2021 05:15:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GOUXu9ZrMsMSd3BbBbz59KL53pbm+9mD3jvAJhxHxm8=; b=skxZ4vQtPTWiZPFjxSE7gtGelrINdQyb9dES5IvO2WcTnUDPvh/u5g1r2TB0CD5jXM PRiY/zFIs3RsPCaVrUikAoaPn2c+tuWN6LdC8yc2Y4ZX2OJxyQq2v9s6jzIzZSOSWjB0 LYI/BhArcYiyfbhKTM974Jr8vOQpPImFIz9m/aw2ZSCqp+JRUnPC09xCE2BRs3lJ13LP /CNEdC5jq6Z/srsX3yAAKVNl+sibVQkRyyR8zRA7SgV/OZLR4Rq0wgrPsygPcf4T/j9h qnMv+5QX6pYp9EzFwKM89sMQnFztq4dnT2hSluMn7225w1G5Pp70f/doeTKVODyKqXK+ EfJw== X-Gm-Message-State: AOAM532C+EP9xH4mjlasv2+upXJwsacQ3Zo7t7WOdkpV0QZp9nwmqpFJ 5QpxDn8gEB1E8n5D1vvbOKavF2OzTZy9ksZlBICrce2G2NfT1RNBtyXR46yNKa9FVNx2agdPouL 9B+WNkzR0bBZmaFWBdNQ= X-Received: by 2002:a1f:2f84:: with SMTP id v126mr9079708vkv.18.1623845706315; Wed, 16 Jun 2021 05:15:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYywRLD9CKmCCGbZOnJTiZWLuCDpNL1EnZYd/hiUmGW7KN/yRv21yZhdYbb9IQvamp1IwQCKMQ/x/FOOkTNNI= X-Received: by 2002:a1f:2f84:: with SMTP id v126mr9079680vkv.18.1623845706068; Wed, 16 Jun 2021 05:15:06 -0700 (PDT) MIME-Version: 1.0 References: <1623763327-30987-1-git-send-email-fengchengwen@huawei.com> In-Reply-To: <1623763327-30987-1-git-send-email-fengchengwen@huawei.com> From: David Marchand Date: Wed, 16 Jun 2021 14:14:54 +0200 Message-ID: To: Chengwen Feng Cc: Thomas Monjalon , "Yigit, Ferruh" , dev , Nipun Gupta , Hemant Agrawal , Maxime Coquelin , Honnappa Nagarahalli , Jerin Jacob Kollanukkaran , Bruce Richardson , Jerin Jacob Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [RFC PATCH] dmadev: introduce DMA device library 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" On Tue, Jun 15, 2021 at 3:25 PM Chengwen Feng wrote: > + > +#define RTE_DMADEV_NAME_MAX_LEN (64) > +/**< @internal Max length of name of DMA PMD */ > + > +/** @internal > + * The data structure associated with each DMA device. > + */ > +struct rte_dmadev { > + /**< Device ID for this instance */ > + uint16_t dev_id; > + /**< Functions exported by PMD */ > + const struct rte_dmadev_ops *dev_ops; > + /**< Device info. supplied during device initialization */ > + struct rte_device *device; > + /**< Driver info. supplied by probing */ > + const char *driver_name; > + > + /**< Device name */ > + char name[RTE_DMADEV_NAME_MAX_LEN]; > +} __rte_cache_aligned; > + I see no queue/channel notion. How does a rte_dmadev object relate to a physical hw engine? -- David Marchand