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 0CF95A0C54; Fri, 3 Sep 2021 17:35:34 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 91A31410D7; Fri, 3 Sep 2021 17:35:33 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id E8E8040E78 for ; Fri, 3 Sep 2021 17:35:31 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10096"; a="217591117" X-IronPort-AV: E=Sophos;i="5.85,265,1624345200"; d="scan'208";a="217591117" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Sep 2021 08:35:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,265,1624345200"; d="scan'208";a="689799044" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmsmga006.fm.intel.com with ESMTP; 03 Sep 2021 08:35:30 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Fri, 3 Sep 2021 08:35:29 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Fri, 3 Sep 2021 08:35:29 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Fri, 3 Sep 2021 08:35:28 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.108) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.10; Fri, 3 Sep 2021 08:35:28 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=buf4n2TT91Rwyg4utzWEYjiM0Pi1X0nCsyGM0sU/5z3ey72pmRd+JZW5LrcEboBOAh0Xy/MpERXAvuhuMHNahg4Bt56aHMcFgzudjSbZVn+jBOLdwcpKcUDcAWowV9uR+g6wEFfAbxNHUztP7tDpAD5G50zhZmJ6BBmM7AnchkS9mbtA17SFJnT5IksKqPozSMnLO1EfvV19whklkvp7/O+1f35I8SBpk9gOcqcYzZ5QW7qohS00wGjLCd631NrHZEAGaUGBJiaq68d2HB8MkiddBRleiPlBq+xn1Cc4I7vWGDUPFHaI7PxU7Rp5gfXyl7kzjSI0FBHogZTOdzKrew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=oKI4Y1JCthTtu7wSy+L1ksl9iUubrB4UPm+nDxQO9h8=; b=FafakbjXKXsWSbjdtPgIEkov71KlEr2w4+uEFoZq3lLKpK9M46crLYfbOgzf732LIr+cb3VxaLnwAhZ4NWvw/rf7u+Xd5/75yECVUvDIXjzyUj/HnQUVdo+6YuGHOMdvuruPEhdTyyOiKN7mf8Xp3Ibrb0FzY/tgcDyF3OEi1IJyNWzxqcNkjgYoRKP+H/SK9yGAnOrkJyvNecfzP2sejwoY6K+DFFDYiujxyyxK0iH5L//xRraO7mHSLLf/HNpyumwZo9+w0G/DnhsTvpcvYgaRxf3e0sUTAbAKCyLMJo6TWLKJN03JtYJ9kO1Vi+FMUDcUKEV5XDddLuEewsvOQQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=oKI4Y1JCthTtu7wSy+L1ksl9iUubrB4UPm+nDxQO9h8=; b=yitT+A5AykENiHxJUdAaL3lL0hnPta6WGQTKWSALE8qrKvlukZ9BY0fCKNfH5i4xe9hlUSWXRpNRBTCRdBUWP13pbUTVZgf1RB/eg5aWhM2g5ZrLjM6qSXzon31tvbzyUT+57Auo4Z4y32F9a2Wef1PipCgGUtXfGRGoJ8RoW9w= Authentication-Results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; Received: from PH0PR11MB5207.namprd11.prod.outlook.com (2603:10b6:510:32::15) by PH0PR11MB5205.namprd11.prod.outlook.com (2603:10b6:510:3d::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.21; Fri, 3 Sep 2021 15:35:24 +0000 Received: from PH0PR11MB5207.namprd11.prod.outlook.com ([fe80::c42e:f6ab:d4d6:dc8a]) by PH0PR11MB5207.namprd11.prod.outlook.com ([fe80::c42e:f6ab:d4d6:dc8a%6]) with mapi id 15.20.4478.023; Fri, 3 Sep 2021 15:35:24 +0000 To: Chengwen Feng , , , , , , CC: , , , , , , , , , References: <1625231891-2963-1-git-send-email-fengchengwen@huawei.com> <1630588395-2804-1-git-send-email-fengchengwen@huawei.com> <1630588395-2804-2-git-send-email-fengchengwen@huawei.com> From: Conor Walsh Message-ID: <698dfd75-2477-cb74-b55a-e10a3b9cee07@intel.com> Date: Fri, 3 Sep 2021 16:35:17 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 In-Reply-To: <1630588395-2804-2-git-send-email-fengchengwen@huawei.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-ClientProxiedBy: DB6P18901CA0022.EURP189.PROD.OUTLOOK.COM (2603:10a6:4:16::32) To PH0PR11MB5207.namprd11.prod.outlook.com (2603:10b6:510:32::15) MIME-Version: 1.0 Received: from [192.168.1.20] (109.79.134.22) by DB6P18901CA0022.EURP189.PROD.OUTLOOK.COM (2603:10a6:4:16::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.19 via Frontend Transport; Fri, 3 Sep 2021 15:35:21 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ed27ae42-a369-415d-b94c-08d96ef072a3 X-MS-TrafficTypeDiagnostic: PH0PR11MB5205: X-LD-Processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6430; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lq710UG40aRi24p3Hawq6NArMVBd9Qbxy6ni6RSl5L/lk8UVKfo/W61PEu1Ubk34zhaa4TSNBlkSIElTIgja8jp1+bU/GINqotQ2hRy7UmsoFP47/pqiaVNtfHiXIrcmtURfjm0Lcnz7CIiQzFYl5TADB584vm/O5JGFnBDu1jKvc5PRxBZLmvkozUU+TaUcMEyjQ1nVBfKM5/5vpE7VIyhQTZAYwDYlnrGAnWWE8zvN0swF7l0ojd3cw8ObkkdcGTT8As4RgSPja+lwc8wBE6bZR6Usx7y5tedFno/Zgo68PwBik36BbJzcYRDaSZvqNIDwr52KFvIYj7udH0jG46VLvgtdSm38Zp/p+OFQ2/VlToL2jFTfMOomua5H6U0CEpgdn5oTqb9ygfFtr7h/VAlgJ6u7b27/75/lVhtL79A9FCtitoc91nP6roPzYMm8F//QIvqxhbkRGnmVa08oj3dOo19JPgpM4I1riCKXOT+UrC6iDpH62Ud7X5/BP7kB3eDqwxuwuNzhQ+HckKlrO5fDDgJgcmpXghqs1ddTwXnx8UgWoxWwlD13a/Dyjy+yUWt/mpeUSo6Me4DBcyJRcPNB7G6YUfYVhzfV9EvQdJz3n0zQ0to8vbCtUS7SQeDUuJTSEGT9wFbXyDu3KIQrfN/tiKrMG/EKReFPuAEgljSSLH4h59HCGD5MMyO9tltvRXy93caZHUwGcBFYT9sOI355667kEz7a2wGiB77CzDo= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR11MB5207.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(376002)(136003)(346002)(366004)(396003)(31686004)(66946007)(66556008)(66476007)(107886003)(66574015)(86362001)(956004)(2616005)(478600001)(31696002)(6486002)(8676002)(83380400001)(8936002)(26005)(6666004)(186003)(4326008)(38100700002)(7416002)(5660300002)(316002)(16576012)(44832011)(2906002)(4744005)(36756003)(45980500001)(43740500002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?d2UwU25oam14ZFl4UVNSWEh2OEp4Tys1ZGZ5djNESXJMWTJIanhrUHhmWm5H?= =?utf-8?B?R2ZnZ3dvQnFhanN6anRLTS82ZEdoSU4zSGNma0FGYm9uSmpRQi9tc2dFZThx?= =?utf-8?B?L21xb05KLzBOZWRVai9qN3FRRHBLbTVGNXEvUnpMbTZDdVR4bnN2d1I3eXBO?= =?utf-8?B?TElTNHRIazNzeTdlT0E2S3NvNEh3Wk1HcklnVWpwMUo4NFE5WG9LcEdHamhX?= =?utf-8?B?L3pGLzJnO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?= =?utf-8?B?bkRLSnR0Z1VmdCs4ZzJLNGkyVStJQ0Z4RmNVQzlFWk4yanJVMWNGcGtkVXRI?= =?utf-8?B?d2F3QlY3ZnlBVmdOZkRabnZWeWh0NW4zWmxHeWVxK2gvdHNkYVVXb2UvRGRX?= =?utf-8?B?ZU9wQVlkWVM2aThDT0hqais3YzhaK2JhS1hlNHF0V01EWG1iWTJsUFFtMDl2?= =?utf-8?B?VTNaSmlIU0ZHZlJVQ2JxZXlUYkxoSWtqL3QxL01yVFVrZjRLUUU4dmVKNmZF?= =?utf-8?B?M25xcHBuWjMzZHo0L2tvL3pVc0hyV0xxMnY3OTFhcHJ5Q01hL0ZOL05FbWk0?= =?utf-8?B?dVR6YnR1NWd1TDUzZmJDUUd0L3I4bHlsQTdrM0lkVFJ3bWdCaTNrK21xcW5a?= =?utf-8?B?L1dqRG9ETHRoYkpsS3c2dERzeHlPT1lFUkRlWEZOVjlTSXQxM1pPTytvN3Nt?= =?utf-8?B?bDdvZ2o4VkxGR1JIR09FUlY4Q3FMeXRNR2xpSGgyb2RERVhKd05QTCtQMElE?= =?utf-8?B?LzN2QVBmWGl0MGRtUGdweGZobGswSGwyTlV6MHA4YVRRSXk5ZjdkODhlUXBD?= =?utf-8?B?dit4RFV2OUlBVE8yN1Z0MFZGUXg2MkxLcnQ5NW1mWDFkamNLSmxnaGJvZG9q?= =?utf-8?Q?+e7hzlmU8Dqv1aL/C07tlM5DqGlCAznY2WGWkX0?= X-MS-Exchange-CrossTenant-Network-Message-Id: ed27ae42-a369-415d-b94c-08d96ef072a3 X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5207.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Sep 2021 15:35:24.5488 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: KIj4z6EbVkk+2Tm0e4ZeppxD7V+cJUZimuihEUrB8bpklmMLf9xxxt3mCeL4oNEFFLp51INh2Yhh0VUKrHTQDQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB5205 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v19 1/7] dmadev: introduce DMA device library public APIs 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" > The 'dmadevice' is a generic type of DMA device. > > This patch introduce the 'dmadevice' public APIs which expose generic > operations that can enable configuration and I/O with the DMA devices. > > Maintainers update is also included in this patch. > > Signed-off-by: Chengwen Feng > Acked-by: Bruce Richardson > Acked-by: Morten Brørup > Acked-by: Jerin Jacob > --- > + > +/** > + * rte_dmadev_stats - running statistics. > + */ > +struct rte_dmadev_stats { > + uint64_t submitted; > + /**< Count of operations which were submitted to hardware. */ > + uint64_t completed; > + /**< Count of operations which were completed. */ > + uint64_t errors; > + /**< Count of operations which failed to complete. */ > +}; Please make it clear that completed is the total completed operations including any failures. Reviewed-by: Conor Walsh