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 6077F41B89; Tue, 31 Jan 2023 06:21:56 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 25CB441148; Tue, 31 Jan 2023 06:21:53 +0100 (CET) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 0CA7440DFB for ; Tue, 31 Jan 2023 06:21:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1675142511; x=1706678511; h=from:to:subject:date:message-id:references:in-reply-to: content-transfer-encoding:mime-version; bh=EPjhhRk1Lf5oyMoO1Twi3O5Txr/NENiIQMt2CjdeHk8=; b=O1SotCJwK3/kdv/QM9ZH0iZGgQ7FUq9v7WKCy8au+qXEtFv4iU8mPtmL ZGyJDDZn3ML1fh6BsOZG3t3Nrp4Q/1E8596mB/ZJUcnCYEhJhWBzRyZlW twtzIfRLUBgSQDRZJp32PkOYgXuYN6J+/X5J7qVW7kmjIcvXPnTxQhUoi 5cbgYD6bw81OdOUPU8zbdVaHEyTJekKJrmU5OW1WMnGTAqK30FfkgEYt7 qZ1TsAUB+6x9cvD7gFDFFFxcFMJuhdZdnA8LX6PNwq9qhIUeZB0nKfu4Q 9Bd1j+j1cRH9wi3CC6psx7pJ8+yF2fB36g3KvPhfnJiZnsHVTGw7EGmWw A==; X-IronPort-AV: E=McAfee;i="6500,9779,10606"; a="315716217" X-IronPort-AV: E=Sophos;i="5.97,259,1669104000"; d="scan'208";a="315716217" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jan 2023 21:21:49 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10606"; a="909777760" X-IronPort-AV: E=Sophos;i="5.97,259,1669104000"; d="scan'208";a="909777760" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by fmsmga006.fm.intel.com with ESMTP; 30 Jan 2023 21:21:45 -0800 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Mon, 30 Jan 2023 21:21:45 -0800 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16 via Frontend Transport; Mon, 30 Jan 2023 21:21:44 -0800 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.102) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.16; Mon, 30 Jan 2023 21:21:44 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jBvdt5aRKUICkJzDrw5VAYF9xKKzWtdl0rWVYwyoGnnbWMzJ1d0UTnnLf08dfpHlBDSHnTnBnKVCPkW4P29kkO0TALvR7NrZEJ6cou/dadfKw77XZKVbqeE/NQk0q8sA8TFgV5dkfYa6LqaDuZvwyYP6WqKCGbD3hnR2AJYcOuPjQEG5s+NNu+zg1I8pvXaIvuUBNTCNJXnpHB+oQieDXuVrbpYUyGcnSIN+LihAro9y2mSk/mkgDY45KmZpD+nT16uJnQJHJYYvFd/DMQGYqtnErWAkJOX/gxt3YPEOwrIyywCAfOe2skPdA+LwSiw3tsq44goENRU0pI54/rAEYA== 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=leqeN+rr/LmeCfa4d4c46KfbXuGjv25aLRTn58zY35s=; b=daUK42c5jmkCTIZKNfzv7F2sFoHnF/0Z21K+IWifWvIAD8OTpFmLqh4b8bdBHQlu7v//JVUYOtRK3yIbYZHcl8QUPgD3MJUwT1a9BQPDc0VqWkHUC/9hAa04m4j/Mf37uRoiT3DI3oFim/1jx1mpvuAMHKt0DYXtMCGhEpo5OSNkon6wvl4BPR+VWxV5hh5CcRfMFUkR3zJX5+o7WqNgx35iJm/p8Xb6zPo5b0euO6uW0KKf4IIPrNP+dtITaBM4GqkFVQqE6LAQ1TkExhexMudDa902Guehvp3dJXxf8jsEBqBybzNW9YulmSG+ZaxXQMMnYiGt/N46jQzV3MgWyg== 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 Received: from SN6PR11MB3504.namprd11.prod.outlook.com (2603:10b6:805:d0::17) by SA2PR11MB5050.namprd11.prod.outlook.com (2603:10b6:806:fb::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.38; Tue, 31 Jan 2023 05:21:42 +0000 Received: from SN6PR11MB3504.namprd11.prod.outlook.com ([fe80::c8f8:a3e1:5b23:a9c3]) by SN6PR11MB3504.namprd11.prod.outlook.com ([fe80::c8f8:a3e1:5b23:a9c3%5]) with mapi id 15.20.6043.036; Tue, 31 Jan 2023 05:21:40 +0000 From: "Xia, Chenbo" To: "Coquelin, Maxime" , "dev@dpdk.org" , "david.marchand@redhat.com" , "eperezma@redhat.com" Subject: RE: [PATCH v1 15/21] net/virtio-user: get max number of queue pairs from device Thread-Topic: [PATCH v1 15/21] net/virtio-user: get max number of queue pairs from device Thread-Index: AQHZBNR8hbkfVHl7H0OuD430Aoz6Za64Xg/Q Date: Tue, 31 Jan 2023 05:21:40 +0000 Message-ID: References: <20221130155639.150553-1-maxime.coquelin@redhat.com> <20221130155639.150553-16-maxime.coquelin@redhat.com> In-Reply-To: <20221130155639.150553-16-maxime.coquelin@redhat.com> Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SN6PR11MB3504:EE_|SA2PR11MB5050:EE_ x-ms-office365-filtering-correlation-id: a971b1b0-ecc8-408d-f9aa-08db034b08b3 x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: nbYVzRMk6mklmdimmQEnrsW8GLU41HTguFV+5CGw7a9pzYHQoN1Xk0Is+oyzDkakMD3PLrMex4RrtgyP2qu9duSKNDHU/07/TB2W/fVNld7HsM4xqUDnApQN8c6Qja+PT0MnCac/Q3nZFWWiOpxF6MzjGyGDpMlrLbxfIm2jfT5AVc0P4RB11upgcv4owUKj5xLlwwsHGh1loEkZe0TL4kdSTP3lYFLUMwxV4QXAr+IZEjQ2UpAlD7rp59FgJtj5JushdWQFbfYj0p/e/5sCZfV5DCvBRbhmKflavkBX+L9fO14r5VmDrtdxG2Ds/7Kpz6OW1c8ELVfARLPFApb/P9NUhkvWPzP+wjoUWUtsUjply1xfYQo+J+FNLM9QZS/meuqE8RRHwFEkr9wfMT3FKdFzYeUHIjssdZMDavKEX9d7b2VQtO3xsjGQBK1KBjoYIC/v/KgNv81AUFcLxnko7vu/1teQiGdbZUUUCxfuSIubIfnFgM5EiaFSLebQa744asageMl2wSar6ISFzsA6tH2IuIMiIUb3GUCim8hDx59ElFel/DSo1Q6QMeWjG9/h10jdFOyh9qZET2q0zPd9RxZlGEjwwKhm9EOEkY9Hka6zYUEZdzwtBOJYr5KasQSJPy4PpIbaDxkmvHSLmek+gZg8rLeFhzXtzXcc4QdpUYgMGPQtj3+AsJ4Z6kR45t5zHLRYY7xZaT2CKz4E4mxSaw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB3504.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(376002)(366004)(136003)(396003)(346002)(39860400002)(451199018)(122000001)(4744005)(110136005)(71200400001)(7696005)(33656002)(82960400001)(5660300002)(83380400001)(53546011)(55016003)(6506007)(38100700002)(316002)(52536014)(41300700001)(2906002)(86362001)(8936002)(38070700005)(9686003)(26005)(186003)(8676002)(478600001)(76116006)(64756008)(66556008)(66946007)(66476007)(66446008); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?toIp+Hxy9dJS8/yXggCXpX78iPUQGYtCnc2zUoeNn8XMbk+izaFCjY+mGeK9?= =?us-ascii?Q?S/+NQZlPVEXMA3Y/B++9kUt08q3mq5FIV1PT9ofPxfZ97/dui09aeciBm3xr?= =?us-ascii?Q?RZwbAJGqoFayRTTHHMM6YtmfQXn+1vjiFPq1vIBxvu+szadorclYFQKoAlE9?= =?us-ascii?Q?kqc52kVokGs6KawokFIjBQfp8hbehYmWMn0+2BLozc7PSz+Gksd0q09eGaX4?= =?us-ascii?Q?Jl+iGe/HIDj0LXyIyuuGN7k6AveW+1/XMurVRAWhTJMKA4tcnI3zSefTQjUF?= =?us-ascii?Q?tCFPSPCNNYP62QMKdqyr0tCWUnjbbAVlCtL1TbIJY5iHHfwqgA08de0lOWvv?= =?us-ascii?Q?YLV56QoLrL5tqYwibwYxqZHM5BZl9E2ZL5AJp0XxRTGm926361nqe2b3u7Pj?= =?us-ascii?Q?IX+tYv0rFbR44+qDNZq/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R?= =?us-ascii?Q?qfHoqvM9Az1cw+9+TLMuEQaL/RbvUQjco9qPesoaqnWamhjV5p8gI2tVzJDp?= =?us-ascii?Q?6SzzJsUicEFM3GIqCXURft+whE/m3UCiaLUAKmWP6mvkGQIPHtF4IOthAou1?= =?us-ascii?Q?Rl2Aq3GrGDacfL+sfOKsMaTGlMhITJh3cYlE031ZhHS5ixsl/rL2Qi/SmCRT?= =?us-ascii?Q?f6DA8GVDxQ1EV2TfwClu3RTIlhLDRldUkcsRW27Xoy1hvmz3mVNqBJ5/3lq7?= =?us-ascii?Q?a/HxvDh8jdwkzebYRaUxYZm3jOT9aCRxSb0oey9/?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB3504.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a971b1b0-ecc8-408d-f9aa-08db034b08b3 X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Jan 2023 05:21:40.6187 (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: Cug053LGyGyLtAI2hmEscsqpszwRCVQMXJa87hg1ni+C92H3/LzaZuF0kWOVvw5wgRZHxudK1irYRgTHBSH54A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR11MB5050 X-OriginatorOrg: intel.com 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 > -----Original Message----- > From: Maxime Coquelin > Sent: Wednesday, November 30, 2022 11:57 PM > To: dev@dpdk.org; Xia, Chenbo ; > david.marchand@redhat.com; eperezma@redhat.com > Cc: Maxime Coquelin > Subject: [PATCH v1 15/21] net/virtio-user: get max number of queue pairs > from device >=20 > When supported by the backend (only vDPA for now), this > patch gets the maximum number of queue pairs supported by > the device by querying it in its config space. >=20 > This is required for adding backend control queue support, > as is index equals the maximum number of queues supported > by the device as described by the Virtio specification. >=20 > Signed-off-by: Maxime Coquelin > --- > .../net/virtio/virtio_user/virtio_user_dev.c | 93 ++++++++++++++----- > drivers/net/virtio/virtio_user_ethdev.c | 7 -- > 2 files changed, 71 insertions(+), 29 deletions(-) >=20 > 2.38.1 Reviewed-by: Chenbo Xia =20