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 BA96DA09F4; Wed, 19 Oct 2022 23:16:42 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9DF7742BF7; Wed, 19 Oct 2022 23:16:42 +0200 (CEST) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2081.outbound.protection.outlook.com [40.107.94.81]) by mails.dpdk.org (Postfix) with ESMTP id C20DC40A7D for ; Wed, 19 Oct 2022 23:16:40 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=c05qf8n/O/09MXgbe/u0vBqg7A+k4rSsyCkTkcsusGNzRNsJsx253McquKfutE7U6YA576hBWnYHHLUT+Jgrme04qbHN19C8366GKd7qhlgJPgOfXyJCfx7kwG1v5xJEEJEVcxzSS5FeLv5kMa5UtHSWk/MeuEPd2jN7NRV5+4Sg0kLzTtYTjdD13VXswLxSll3P+pt1T3eLhG7ccOMue4QTsxUBwM1YQLDpyc4SyFT02wQ7W+dROKPd9JO6Vkpbahf1n6jXcibL5JZ/2Y5z40Qo6F9aebI6iMrd69MRoMNbVx/Be74Yznvzn0ydmf9jc0hm6XvwUb3zI5MqXX8qLA== 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=E6WBkP2KVX0sOGq12CLFqiDS3ibq0F3cUu1bKiD7B5c=; b=GhTEU6MXexR0wXFIeERMIo6HpfoWSxcHvYhrDgs8vixAHE2e/AzS/S78Faq+knNytleXofv1B7NPp4obuKBp9PMiWZC1UDp6+T06LyedPA1Hgg/wrcQeI42iNdXy+dX6KIJGEi55XnW7LtYQkq9co8FYwIHLkYTMzUlE9Ty3cD2M8mHBCgWiSfoeGlh60VRzV9QDVjwAGmNR2GJTYYaL5O9NWyTWo5pUaHIdfRY9PTpWirQ7ZaFRuhXgms+iNitIl7rYgdYEwI5MMEBGZdhLeX4PlIBucd3LrLzIr8dJUTRPawN5Kx1eS1KFBj5+ur07o/KjDRopi2e1VHuSTcSmuA== 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=E6WBkP2KVX0sOGq12CLFqiDS3ibq0F3cUu1bKiD7B5c=; b=Vh0NckFbplGqGOxegn/CAVnnyPqGDB6mpHK3i+JLvIb9l+U8TVS/BdxNwh+fG2QAFfypXA6jVI6j5/CMpelvHBm0bufLaemlVZyBgJPNdCV6q0MQyDDY5EQtXFyaxU/kUoc9F3/RyLwOPN585vuLl+8xfO1ip0cX6payBPK7RiM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from DM6PR12MB4297.namprd12.prod.outlook.com (2603:10b6:5:211::20) by CY8PR12MB7610.namprd12.prod.outlook.com (2603:10b6:930:9a::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.29; Wed, 19 Oct 2022 21:16:38 +0000 Received: from DM6PR12MB4297.namprd12.prod.outlook.com ([fe80::b9fd:e732:4585:6b25]) by DM6PR12MB4297.namprd12.prod.outlook.com ([fe80::b9fd:e732:4585:6b25%7]) with mapi id 15.20.5723.033; Wed, 19 Oct 2022 21:16:38 +0000 Message-ID: Date: Wed, 19 Oct 2022 22:16:31 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 Subject: Re: [PATCH v5 3/8] net/gve: add support for device initialization Content-Language: en-US To: "Zhang, Helin" , "Guo, Junfeng" , "Zhang, Qi Z" , "Wu, Jingjing" , Maxime Coquelin , "Xia, Chenbo" , Xiaoyun Li Cc: "dev@dpdk.org" , "Li, Xiaoyun" , "awogbemila@google.com" , "Richardson, Bruce" , "Lin, Xueqin" , "Wang, Haiyue" , Thomas Monjalon References: <20220927073255.1803892-2-junfeng.guo@intel.com> <20221010101757.878317-1-junfeng.guo@intel.com> <20221010101757.878317-4-junfeng.guo@intel.com> From: Ferruh Yigit In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P265CA0236.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:315::15) To DM6PR12MB4297.namprd12.prod.outlook.com (2603:10b6:5:211::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR12MB4297:EE_|CY8PR12MB7610:EE_ X-MS-Office365-Filtering-Correlation-Id: dde48d58-5153-4257-dc04-08dab2173591 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dmKWkyGPiIsgTfGB3cttbA6Sk4Bg5M0FNzJpmcFHVZTy1DmNpcqcNTv4S/CoX6srJVbV6pDaysQ1l2iAGMZ8Z3oVgPlNs/BVy8WJ3AwHX7WHyMVYwilwFSKlRJjgcTesQy9uM/Vr9FQIBuM5paeaMpoc0gY0tzeDO6LehZbJB1o/mcOGQ5BZmo0uq5XPfGhfd3jwfFg3pEbwD8k5VaqmMNg78uud9PbpVTG5US3dURMXQf0rLBXVW3TEizAIpU34C5MgJMm5hOyOqThNTcF5UXEEzO0Bupl7VIdqPcqdtXunpq+c7UFIR/Hc7t8D9/jgFSolGAK9oNe3UBtP3A17+x4/5f5astyyczBIyETZno10AvTxw/GEX+S7S0uyKBWQ4cE4p1iccpUB177eTdl5d7u1YQdr+rdNc9OQ4Hz0g2fJ0nGJNWS8DVohVf1w6+NSVOKBMTKtLrNwbQ9J97Ud461Zw789pjC4agOjUk0U5QRd/Y27WCZux+D1prVYiUHm2qYjWknh5sOtAKM4CJba5fc+bb72JhnEcUWdGWFqULsfm8Em1804IKQcltev/IkJb0PYCTl2KqoFKMZaWWjeLunA9q5AlbZB0GSd9VebE2Md3X4yivoOMDsHuobSBSgTZmO4iidmigQ+zhK4Sap8N5JLP4BRm0rfKVa0WuQJoclpU951JUYF/ZNCxdQvXbp2Upw3ZjqJQs3834uOjPpIBPSf1LaepZmLm6J5vqXWa0o7w/ohnhXEdflKO/VP9uTYzkq2o0EVjDZHHaYHLXaBYm2XpXodmJtfsApfTw/muzN1yygOZ7uFgbyq+L4vEvIu X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR12MB4297.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(366004)(136003)(39860400002)(376002)(346002)(396003)(451199015)(6506007)(110136005)(44832011)(6486002)(54906003)(2616005)(8936002)(6512007)(478600001)(66476007)(26005)(66556008)(6666004)(4326008)(66946007)(8676002)(41300700001)(5660300002)(7416002)(53546011)(316002)(83380400001)(921005)(2906002)(186003)(31686004)(38100700002)(86362001)(36756003)(31696002)(45980500001)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?eFlhaVpGUlVsV3RzM0xNVEZtN29nbk5QM25qUFZ1VWg3QnV0RVdaZnJ1R2Uw?= =?utf-8?B?ck5DdUVDSU9jbWJHV3dLbS9DL21lLy8xRzRHNCtweWxoc1U2UHM5Y0k1dWNF?= =?utf-8?B?eU5hUHFrTW5GZFlDcDVuQlEzL3p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Z3k0S3IwWmxpNVV5di9LN2RoQU5RZ0dm?= =?utf-8?B?KzhRZXpjbzlycUdKY04ySjNsTE1YTWxQUjJ0bnkwTUxPRnhyNmw3QUFoaWtt?= =?utf-8?B?TU52dHpML2JOV2I5RnZUTTFGMUg5VXNHWlY5dGZtWkV0MGd1VjYrTkZHaVo5?= =?utf-8?B?RVdIaVlMbWpaRzIydXN2RXFyVlc0SVNMZUgvdjNSa2x5TFZ1ZlFEdzBLWEZq?= =?utf-8?Q?E8H0NZ0XOmBSBxDI+xKbm9CQf?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: dde48d58-5153-4257-dc04-08dab2173591 X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB4297.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Oct 2022 21:16:38.1289 (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: 3+qHLKu2oi1I5lsRSsiP6uTWG1Zg2wjRBL3XLlFc+vMo5zN7ETgjB0oO1hVIlZLZ X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR12MB7610 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 10/19/2022 3:24 PM, Zhang, Helin wrote: > > >> -----Original Message----- >> From: Ferruh Yigit >> Sent: Wednesday, October 19, 2022 9:47 PM >> To: Guo, Junfeng ; Zhang, Qi Z ; Wu, Jingjing ; Maxime Coquelin ; Xia, Chenbo >> Cc: dev@dpdk.org; Li, Xiaoyun ; awogbemila@google.com; Richardson, Bruce ; Lin, Xueqin ; Wang, Haiyue ; Zhang, Helin ; Thomas Monjalon >> Subject: Re: [PATCH v5 3/8] net/gve: add support for device initialization > >> On 10/10/2022 11:17 AM, Junfeng Guo wrote: > >>> >>> Support device init and add following devops skeleton: >>> - dev_configure >>> - dev_start >>> - dev_stop >>> - dev_close >>> >>> Note that build system (including doc) is also added in this patch. >>> >>> Signed-off-by: Haiyue Wang >>> Signed-off-by: Xiaoyun Li >>> Signed-off-by: Junfeng Guo >> >> <...> >> >>> --- /dev/null >>> +++ b/doc/guides/nics/gve.rst >>> @@ -0,0 +1,63 @@ >>> +.. SPDX-License-Identifier: BSD-3-Clause >>> + Copyright(C) 2022 Intel Corporation. >>> + >>> +GVE poll mode driver >>> +======================= >>> + >>> +The GVE PMD (**librte_net_gve**) provides poll mode driver support >>> +for Google Virtual Ethernet device (also called as gVNIC). >>> + >> >> This is a virtual device, emulated in VM as PCI device, right? >> If so what emulates it, I mean can we use QEMU for it? >> And is there a kernel supported backend, as virtio has vhost? > This is a virtual interface only provided on Google Cloud Platform (GCP), like ena on AWS, and virtio on Alibaba Cloud, etc. > The gve (gVNIC) is the standard virtual ethernet interface provided to users when anyone buys a cloud instance on GCP, which is ready there and everybody can access it. > The backend details are not open to anyone outside of Google, I assume it is more like a business & technical secret of Google. >> >>> +Current gVNIC is an alternative to the virtIO-based ethernet >>> +interface that can support higher network bandwidths such as the 50-100 Gbps speeds. > I don't think it is an alternative to virtio. Gve is the driver name of gVNIC of GCP, which is the standard virtual ethernet interface on that cloud platform. > Thanks Helin, Chenbo, Xiaoyun for clarification, My understanding that gVNIC is another virtual interface spec like 'virtio' is not correct, so comparing this with virtio and to document it is not really necessary. Perhaps "gVNIC is an alternative to the virtIO-based ethernet interface" part in the documentation can be updated slightly, because as far as I understand gVNIC is an alternative to virtio in the *Google Cloud platform*, not a general alternative. Overall, agree to enable virtual network interface in Google cloud and as you all highlighted we have similar device support for other cloud platforms. Thanks, ferruh >> >> This is an alternative to virtio, and it would be good to document pros/cons of this device/approach, to help users to chose one or other. >> >> Is "support higher network bandwidths" means this device is faster than virtio? Is there any performance report? > There is no hint that gve (or virtio) interface is faster than virtio (or gve). I think it heavily depends on the backend design, which can be SW or HW. > I would treat gve (actually the driver for gVNIC) as just one of the leading virtual ethernet interfaces on different cloud environments. Till now, gve is for GCP cloud environment only. > > Hopefully my understanding is correct, as I am not the expert at Google cloud, and I got all the information from public. > > Thanks for all the good questions! Hopefully my answers help! > > Regards, > Helin > >> Aren't there any other notable difference? >> >> I think better to document as much as possible, cc'ed more virtio people. > >