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 0641E41B89; Tue, 31 Jan 2023 06:25:02 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EACAC40E28; Tue, 31 Jan 2023 06:25:01 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id EC65640DFB for ; Tue, 31 Jan 2023 06:24:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1675142700; x=1706678700; h=from:to:subject:date:message-id:references:in-reply-to: content-transfer-encoding:mime-version; bh=kNSor6yUwih/lZqsRZq5fqAKFmNASFS3m6XRe8UmZP8=; b=IIoc9MuzSewatrmtyJtAFYdosVnj9SvYA06PQTwOD51igb66l7cOB0RM TuXe8qE+tNz7bMaq9nvbXoXeY/oS76uD5TNmrE63CO/bEfZ19194KHgBd N2I70Bqhua+yO1LmEEXoQBHUAFVQNLPb76WZkRlWsaQTY8h5RozvZ4yru rVfURxMZ9ad8USLEjViuAp4oKzcH1KPhzkN186dwhNOK4qvRYg+KlOc1r rOftwRcmUp9XDcW/PpKQ2h5EVs5uFp9M8CD4qNHN1JyqXGYYDKFzxNAcy vafkB4uaf2+rv+LPyqREkajOU/jLYQG+LHUk06HFHkAiM1l/qEPMbrhKQ w==; X-IronPort-AV: E=McAfee;i="6500,9779,10606"; a="325449684" X-IronPort-AV: E=Sophos;i="5.97,259,1669104000"; d="scan'208";a="325449684" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jan 2023 21:24:59 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10606"; a="788312495" X-IronPort-AV: E=Sophos;i="5.97,259,1669104000"; d="scan'208";a="788312495" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orsmga004.jf.intel.com with ESMTP; 30 Jan 2023 21:24:58 -0800 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX603.amr.corp.intel.com (10.22.229.16) 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:24:58 -0800 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx612.amr.corp.intel.com (10.22.229.25) 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:24:58 -0800 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.168) by edgegateway.intel.com (134.134.137.102) 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:24:57 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NBOspqqzwFRjv7mJrZcLus0StgrT9Z87+JIEZAwAbXlPMRRTGelNrX/sFoBB1GAGJxv2ixvbfq1RDfi1wCD50PVwNFyBZIjlPWLX02e9DK+jwqCxi/1CxXKgBG+JEVCoCa+x8umqsEGADQgY8zuymcViLrmqHxssy4kdTw/s4vSIuix/YX9O7+fS7Oxn4R/EP43cejdzi+9x4/AvbGiAZtiUsB8Cu6LE45PEHDvOsMp5MTpXEvrg1m3lzIbCUpc01yxIJGVo2KtaNl7UVYgIU/aO/DukStXmrjZzvMOZ5XJJAR6rcI3lle7y+2W9tFdnUn6mxj7zaOwa0Pk7UneqKQ== 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=r3qlPOLMal8MQldswVx8zjQrLbrR1sMAId/AX+fmFds=; b=djjUoicFY6XGyFXLNc8kjL+VfWFLsXy/ZkYFJ41Q2mptlyOLkUIzN4keosPJ8Igh+x5+H8RQ5FR/Hdg93OFETHviiPbpqco20Z6xi0qwR0I2TiwxymLMud/ZNaz7ceIRtT8kuzuSvk7Siio5Ik6CQIXCta7JPbN4SeTimxXENZma9HHBCB0y535TiM1TcuVkexN+/ZlYtH4sBsnWfRmKs5SU4KafOo1Ax+uuNMovrNToTNx0Y/bymRphQm8Lpyn7OwnYkkFCwsuPQx8kebFsDRp3n/AW3v6YGi0E2k2/yQRxV5tnvDnnIWSS47rJybPM6y5IiD2BasEZUdKbdxLk/A== 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 DM6PR11MB3499.namprd11.prod.outlook.com (2603:10b6:5:61::24) by CH0PR11MB5412.namprd11.prod.outlook.com (2603:10b6:610:d3::10) 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:24:55 +0000 Received: from DM6PR11MB3499.namprd11.prod.outlook.com ([fe80::4414:4b59:882e:a06a]) by DM6PR11MB3499.namprd11.prod.outlook.com ([fe80::4414:4b59:882e:a06a%5]) with mapi id 15.20.6043.036; Tue, 31 Jan 2023 05:24:55 +0000 From: "Xia, Chenbo" To: "Coquelin, Maxime" , "dev@dpdk.org" , "david.marchand@redhat.com" , "eperezma@redhat.com" Subject: RE: [PATCH v1 20/21] net/virtio-user: advertize control VQ support with vDPA Thread-Topic: [PATCH v1 20/21] net/virtio-user: advertize control VQ support with vDPA Thread-Index: AQHZBNR2ING9cadduEu2FMBQv19THa64Xmrg Date: Tue, 31 Jan 2023 05:24:55 +0000 Message-ID: References: <20221130155639.150553-1-maxime.coquelin@redhat.com> <20221130155639.150553-21-maxime.coquelin@redhat.com> In-Reply-To: <20221130155639.150553-21-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: DM6PR11MB3499:EE_|CH0PR11MB5412:EE_ x-ms-office365-filtering-correlation-id: 84a26008-8d2e-45c3-7173-08db034b7cbe 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: iwUG1PCt+XYlz8nH501Fj4FQEfOF1DRC36babKcozTnBdLtGQWqx/2wdzQQceOEyOb/DSqAWf9OsZgoYKIc4a6yv7Jpt2ZqE4V/HIduBwoVdV/Yl8G54O+KWMZyuLOxqzl2AOVDTh4yagdPTChnLvZ8yGoISOeJ6Q53AXTEc0FM0kvl6lMyeQrGZtPgo7JUcm5p1tvFGxNmPxXSiOkmO4ag9a+eVp9f5Xkwa5/z7QkifvaD0R4IxqZI0iGwd1/UKOydM5R9saLDl1PI3AYVu/og8NdACwgPHpYlSI/2XZlFMc/cRV2QfpJz96wnWxxAuieEQBuLLnSC4oivPfCEENkCDP8TFUVojNJ8J5vfLLmH3nzOIKRuxczkrSISCPYiTRb4ZSOCcRC27C7Zd9umniEbxDUgIWR5IcFRlquw2AtEpTn+O4A/IC4W4APxzrzaiYjdPAMSH+SQ66WuHkktLb7ILZ3ZSUPPsRLBeRJ0MA5OVBJRuJpm89rleB17prDXVwDcuP2+MfKnTmK1z526qDpiASVJOTBoC9196XbFCLKQnC8IgVgYGgSO4F8CL9AClxGo1zLM647XYkVW1kk0bhnBqGl3dfsxRRYib27Q3t4eVIdgNe/WlbuQrNLltefYWePhEF5lBu5u0D7qR4v7jEE/4ZLhP818JdTQ7Hi2NQoz0EqmD2U34By8U8hUdiXtdCjNhg9vMtdA1UlEz7UDwAg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR11MB3499.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(376002)(366004)(39860400002)(136003)(396003)(346002)(451199018)(66946007)(66476007)(66556008)(64756008)(66446008)(110136005)(316002)(8676002)(76116006)(5660300002)(41300700001)(8936002)(52536014)(122000001)(38100700002)(33656002)(86362001)(38070700005)(82960400001)(6506007)(53546011)(186003)(9686003)(26005)(71200400001)(83380400001)(55016003)(2906002)(7696005)(478600001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?mXGtNYmUklcj0NWyREssSqoR0nLgssQMPazNinkaQA2PR0RK2IOnz1HfbmMO?= =?us-ascii?Q?kdc/rJwsJv869i3cRDpLRTsGAABes4i2pZdEwuN7OsWBRWemvdQ1VPCcZpqI?= =?us-ascii?Q?OqAgEyqbLMO3/ZgesEmgxz9cE1WvKplVHFfcR1d/OmwsHFFkUVNpG3zuTlOz?= =?us-ascii?Q?2YzQ0+HNDvnkednf5zQnUQKapjCh9lYGxElNwxALKqB/kmBAXWRjpWs7UFYI?= =?us-ascii?Q?0cMv15A/eWw4YL2ceVrnTVwyMlisVAm95WUIdfDjc+YAx1dqBzTZ+sL4920G?= =?us-ascii?Q?jP1rNy7qiqBZMD89c/HYQCQH4nCjQhWUlVMMvRLqwFuipz1iE2MvjwzBeWBm?= =?us-ascii?Q?fJacyaJsoboocPLH0dfaR9GzYItC06FRiDqcW/KESrGJbWPFh3sy2j+95PNu?= =?us-ascii?Q?Oj2VhY0ZFwLsNW1CjkDUPt/qxpL0STliuLrSddZRytSyOMfN4vpnvwrHqeo8?= =?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626QK2fTrpQCrHj9LtqFV6KScj8u?= =?us-ascii?Q?B5+ccwfIxLx1B4K64A7vJQ7yjTUTKKnhdn+kPOsrYgY2nO247GqQpEBN2GGY?= =?us-ascii?Q?O+KWn6yMV8jU678zGPOWQm2HMdiGyiQYx0pLhWFRqSdpbiPhs6cMrIQZv1rl?= =?us-ascii?Q?bqxCDtCmgYCZzjcfiBhBXNdkzHTGXiVdu9+g5gQhgIxTdUT5eJFwzDCnazvy?= =?us-ascii?Q?f1wj39WxqGjrXHxmB/koWjVZx3Q7vTS4YVDHhDJ/?= 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: DM6PR11MB3499.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 84a26008-8d2e-45c3-7173-08db034b7cbe X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Jan 2023 05:24:55.2718 (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: 5pY2ccYczBEc6eTv69Z2O1LJY7N7TMPi0ciFnTJML6eHw7N8nxTZvi+tNnzMqNATQtX1vyvsSdcpGg2nGno3Tg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR11MB5412 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 20/21] net/virtio-user: advertize control VQ support > with vDPA >=20 > This patch advertizes control virtqueue support by the vDPA > backend if it supports VIRTIO_NET_F_CTRL_VQ. >=20 > Signed-off-by: Maxime Coquelin > --- > drivers/net/virtio/virtio_user/vhost_vdpa.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/drivers/net/virtio/virtio_user/vhost_vdpa.c > b/drivers/net/virtio/virtio_user/vhost_vdpa.c > index 3fd13d9fac..7bb4995893 100644 > --- a/drivers/net/virtio/virtio_user/vhost_vdpa.c > +++ b/drivers/net/virtio/virtio_user/vhost_vdpa.c > @@ -135,8 +135,8 @@ vhost_vdpa_get_features(struct virtio_user_dev *dev, > uint64_t *features) > return -1; > } >=20 > - /* Multiqueue not supported for now */ > - *features &=3D ~(1ULL << VIRTIO_NET_F_MQ); > + if (*features & 1ULL << VIRTIO_NET_F_CTRL_VQ) > + dev->hw_cvq =3D true; >=20 > /* Negotiated vDPA backend features */ > ret =3D vhost_vdpa_get_protocol_features(dev, &data- > >protocol_features); > -- > 2.38.1 Reviewed-by: Chenbo Xia =20