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 23E28A0542; Tue, 4 Oct 2022 19:49:41 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 13F56427F2; Tue, 4 Oct 2022 19:49:41 +0200 (CEST) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2089.outbound.protection.outlook.com [40.107.220.89]) by mails.dpdk.org (Postfix) with ESMTP id 01DD4427F0 for ; Tue, 4 Oct 2022 19:49:38 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Djc1nky9WbWzw5bF7uxm2N4J9Has2S9FsV6UyhGi+A7XggjMjLTVEDai5GRVdM3AXj7jGrvajGtVAOiyHD7zv3k2tOWC97yJ9mvC7pxOyyPnaeLXOCFFZHCWumwfEDT/f0AiIqo6myj7a9l7QdmRyyilXZsUMxUl1Jqxo3DG7YcnNbUsz4oTlujJz81F5XlSNXba6wJWr1rkcBc91yVgQeAr7kEf6Y7lSXxVdy9HnnAVr0BClYDrv3SX2qiNiHNkyGx8/z538nCMh2VvCZIqdc9FixrkVWrxyL1OIO//ubmWoYigd7/pVqujxpfUFjk5LfgcD3E0vJ1HcLw/JeBDyw== 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:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=bLu+lq8bQRRVaYCaYoTSHqgNZA3i2bbzvPMDTcmHwgQ=; b=YO3327Ml0eY7Zbocf8w7pHUH4nz5Qqu51vjKIKxZDvhgCWPgDwbQ5qsuMg1rQcpdllxK1XJBIZeIUWmn2rCTDUug7x3SJUj+WDe3Pu7dFX1eY7fFE7e7nGMkXBQCE0CqzUL+mpRErD80oPhV8jrEGTNE1DqKDUFKRBtRZiJKVCVW8Z9wOUPsILoRlvkd6iEZrZY45hqd7aBqS6K9ZFGsucdqMp7ggxVUi1GNdKqG2rZPp11S10lyEiaQBImIY8WpTOC4SthNHDAwor2LEAo0bj50gXb9qamwMuo9ScGruFBRb9vUEK9d0zSNKwaC0gel5h2e7qViBpaHiqYdD5n2ow== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bLu+lq8bQRRVaYCaYoTSHqgNZA3i2bbzvPMDTcmHwgQ=; b=G/8G9IxbIaa981u2YPaIja7o9tuvHO/ZBPjP0pblIbOBZGUeqwdw+R2nextk773xVfiYzKZUjgaQ+D6dm/ihc2dRCJ2OlQsolGa6W4ZPVGnrDgwthLcLTONl8pHelNvo6np0GnA7C4dQ6SyzqeQKW3RO9Dm6uJL5JSfvrfnrZzA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) by MN0PR12MB5954.namprd12.prod.outlook.com (2603:10b6:208:37d::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.23; Tue, 4 Oct 2022 17:49:36 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::d07a:463f:6f93:337f]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::d07a:463f:6f93:337f%7]) with mapi id 15.20.5676.031; Tue, 4 Oct 2022 17:49:36 +0000 Message-ID: <120e4b65-3a2a-c525-b104-7c752be5a7ee@amd.com> Date: Tue, 4 Oct 2022 18:49:31 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Subject: Re: [Patch v9 15/18] net/mana: send packets Content-Language: en-US To: longli@microsoft.com Cc: dev@dpdk.org, Ajay Sharma , Stephen Hemminger References: <1662674189-29524-1-git-send-email-longli@linuxonhyperv.com> <1663987546-15982-1-git-send-email-longli@linuxonhyperv.com> <1663987546-15982-16-git-send-email-longli@linuxonhyperv.com> From: Ferruh Yigit In-Reply-To: <1663987546-15982-16-git-send-email-longli@linuxonhyperv.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO2P123CA0054.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:1::18) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|MN0PR12MB5954:EE_ X-MS-Office365-Filtering-Correlation-Id: bdd6b8e1-ac3e-4387-9b39-08daa630cdaf X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Dr596aD7R1I+mcJcwPJtoGgc7PGUfJCQEc6W2NHlujVbKm2YZldLi4EjwciasIrKMilZrxlLiYD0La0ynCL3oSScYAFYC7wE2d2cy2E0/tt+laPbALDoEKLwTJLxWOw/ReozN9uGmqc8xFku8soBgOpcKrWgiaR6VmwZuFp4aQlGZncbW0JhNGQYS77ULcQD0emCuTqgRREcQSLqoLm2iQDBaDmJ4hchntVV2IP+pt5mcbGxAmAO67QQG0XDPYkX7H/GG3FNH/dEnGEZ2WfaY1+Uriuty6IZCXVZRYa8Dj3CeWSN/Oy9JCpW6ng4lEvnKyaWPeGIMu1KNVe+4a+ZubPcS39Q6eayeWQdRKlX9vJ8KgVrI/7xAsWC1m/36Xn8n7iy4rC1kFeFAlCwkzMnoEWDWEC9lVG2yHyzkyQFpbglqCSojTj6jg35Vudr2gsoYCFUqniI4F/tFHWFPnX6cSUeFtllniNiv3/M+wec+xhp8/iPjtH/tYm2oNZqrKjXSfqMupmwo1dYKvixUgVC9XxCrKCYjFSoRNKih10kyO3u4l+hE0UjbRvFHsiyFtXqEjp6DQ20+rHnVZH0IIlFvj+eKTIqq/bdd1LkYFYQv3HBGsle1rNwQjd/tNVc9dULmINrmPnU3JSgwvK3Jen3alnXa5NfHQxvzUuHZX902plhZS5ZKNqKWdDIshboU2OgQ9wfdfN/HnhWB7LJEIQ6WmHV8udvQTJXQJvXld9J+jmXpP6IilMzs44nfZJWnot2X43Oujms3wy6YXcFMJpz8NmqNIkGjjiRnjEsrnDajCs= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH2PR12MB4294.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(39860400002)(396003)(376002)(366004)(136003)(346002)(451199015)(36756003)(31696002)(38100700002)(6916009)(4326008)(54906003)(8676002)(316002)(2906002)(8936002)(44832011)(66946007)(5660300002)(41300700001)(45080400002)(66556008)(66476007)(6486002)(6666004)(186003)(478600001)(86362001)(53546011)(6512007)(26005)(6506007)(31686004)(2616005)(45980500001)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?UzZNQTE4V3g4TXBNcjlhQ3BrYTB0Z2RUTERwaFNTempXOXp3ODlETTNZbDJR?= =?utf-8?B?Snhrb0R0SjlNOVNjNXFTcFFuV3BMM1VBbi96M09kSC9Xd2lGSTBVencxWmYy?= =?utf-8?B?Tyt1ZHlYTFB6aStWaGQ3MnEzRkk2dTlkWG5zTWZQRUw1WUlLNHdxZ2lETThp?= =?utf-8?B?V21Ja2ozVEdQMDAyeWtqdm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S?= =?utf-8?B?RERVTlA0dFcwa2NpdGFueGVrNS83RGdTTDgrOUlTOUovY29ZQlZlUWZXRkZO?= =?utf-8?B?WkJtL3liZytMNU9OVHl1QUMzTnZ0dmpLQUZESFlycWdqMDdXT2FiZFUxVGNU?= =?utf-8?Q?bF0OxMt+g8x2/JsIVMWP0s4xc?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: bdd6b8e1-ac3e-4387-9b39-08daa630cdaf X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Oct 2022 17:49:36.7868 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: cpk6Gs6euAUCUJskfiJF5Z5epfsZcmDXFpccPZnA2zSK6Roqw4TnBoOD9JZd5Gqz X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR12MB5954 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 On 9/24/2022 3:45 AM, longli@linuxonhyperv.com wrote: > > From: Long Li > > With all the TX queues created, MANA can send packets over those queues. > > Signed-off-by: Long Li > --- > Change log: > v2: rename all camel cases. > v7: return the correct number of packets sent > v8: > fix coding style to function definitions. > change enum names to use capital letters. > > doc/guides/nics/features/mana.ini | 1 + > drivers/net/mana/mana.c | 1 + > drivers/net/mana/mana.h | 66 ++++++++ > drivers/net/mana/mp.c | 1 + > drivers/net/mana/tx.c | 248 ++++++++++++++++++++++++++++++ > 5 files changed, 317 insertions(+) > > diff --git a/doc/guides/nics/features/mana.ini b/doc/guides/nics/features/mana.ini > index fdbf22d335..7922816d66 100644 > --- a/doc/guides/nics/features/mana.ini > +++ b/doc/guides/nics/features/mana.ini > @@ -4,6 +4,7 @@ > ; Refer to default.ini for the full list of available PMD features. > ; > [Features] > +Free Tx mbuf on demand = Y Isn't this requires driver to implement 'tx_done_cleanup()' dev_ops, as far as I can see driver doesn't support this.