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 7CA90424BD; Mon, 30 Jan 2023 08:53:33 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6BDC540EE5; Mon, 30 Jan 2023 08:53:33 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 54AD540C35 for ; Mon, 30 Jan 2023 08:53:31 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1675065211; x=1706601211; h=from:to:subject:date:message-id:references:in-reply-to: content-transfer-encoding:mime-version; bh=4VPGCjOWz7gm4oFJqzhOpDs4u99YgEWXd9Axq9f1wBI=; b=GiBejdKFp+QP7YQMRyswxkTHoyBMARGkmaqIo1c/8uqQLJU6MGNooT24 xXuDKM7Q2o/k1dTjC099Rzp9f/J1zGy1A3JMx6s95BQdNMQy621RCtM8q Tx3y5SIED86h4aTLxPJHzgj7FlA/TrtlYfo5nNO21vh4AKSz7Zznw8zJ4 2/y1wEq1PsB4UJ+6kmuR3MjlbVn1Vd+CHaWyekwAUe1+qQJPyESUt36sv ZWEQkqK8L/MNr16ljAecubed5cjo4SeYfCzuprywxhyBbl5dRwy/q1RCQ lvRKQ4yAiicfw/Qgd7gqJSpi6cSXAbNtY0g80FHRLUng/mKkHwVyAP0LU Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10605"; a="413718213" X-IronPort-AV: E=Sophos;i="5.97,257,1669104000"; d="scan'208";a="413718213" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jan 2023 23:53:14 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10605"; a="752723343" X-IronPort-AV: E=Sophos;i="5.97,257,1669104000"; d="scan'208";a="752723343" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by FMSMGA003.fm.intel.com with ESMTP; 29 Jan 2023 23:53:14 -0800 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) 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; Sun, 29 Jan 2023 23:53:13 -0800 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) 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.2507.16; Sun, 29 Jan 2023 23:53:13 -0800 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) 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; Sun, 29 Jan 2023 23:53:13 -0800 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.49) 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.2507.16; Sun, 29 Jan 2023 23:53:13 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ovljcyh51kfFPD6FhcNc6wD/a0PAANl/eIFdOVgHU0ZY9WTPw23CwMWFsRiVZQdh7cpvIdWtGW56u+SqTD1MWjvlMyDaeKezAC6nEz8gKhVafqeTQyKSmm/BZ2t1wFJCdZ9IZ9JBdHBBPkCjqTdA9/pnODCWjvJmCYoiFiM2ZiVA/tK6EmlwuURuG+yBzHwUvJXod4KzA6pzUNP82Eshld/ePbPLHqC9esBVx5jQmjwEwWWh0u1S5vvFTvsyQpD2JANTq0Ed5xArtAiklm0EpSQFKUME53AstfCuM1/Wemqp5URhxzXWoLs65otM99Hg/0/dFcmHZ6KKr9OkOJsMHw== 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=wq5/EQoWmcjmc9jjhZmcqxHmmGhXL4LyGE2V62XcLeI=; b=QdYLURytX2Aepuo+cA3yiP8IDmrewH8A/m7DOOSM4N3DTAetL3jWC7mbHZsDcWjRF9skwmWPqpbo12oSCBEhpSeFQAkDJkVvGGxM9ejoZUrSO5nG8PnYK+Qt5yh544ILx14MJ1KRFMMBEKJwMD6um1QS+YsTiv/J/NaARK1drgHzCXpbHtASYS/YGEtKqH/D9d0+oI55KNvcXoCARG7jNoGIU1TG9+s8icGqx36iRF8AldDmrVEViPZSXoHZ1hgCMf54RAKPQM+6yXqC3asBGdkmfRFWF7TH2hHDRcpSBZimLyg5XGXRrr1KlpPvcLB8uDQ4+INULbIX2ACTeZPGHg== 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 SJ0PR11MB4990.namprd11.prod.outlook.com (2603:10b6:a03:2d8::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.36; Mon, 30 Jan 2023 07:53:11 +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.033; Mon, 30 Jan 2023 07:53:11 +0000 From: "Xia, Chenbo" To: "Coquelin, Maxime" , "dev@dpdk.org" , "david.marchand@redhat.com" , "eperezma@redhat.com" Subject: RE: [PATCH v1 11/21] net/virtio: extract virtqueue init from virtio queue init Thread-Topic: [PATCH v1 11/21] net/virtio: extract virtqueue init from virtio queue init Thread-Index: AQHZBNRyTt3Oj74wAUe038iFqQEN56629glg Date: Mon, 30 Jan 2023 07:53:11 +0000 Message-ID: References: <20221130155639.150553-1-maxime.coquelin@redhat.com> <20221130155639.150553-12-maxime.coquelin@redhat.com> In-Reply-To: <20221130155639.150553-12-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_|SJ0PR11MB4990:EE_ x-ms-office365-filtering-correlation-id: ccc032d9-579e-450a-4651-08db029708c4 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: HKuuf/W88foIX/nmYf0o8bcg1qMxWjJI051GnrHcKlFAa+zmlKsFBBMBgUbJ70GvDYddGobSdeQRyDftO/uwJOnw+lh+Fn0MTC6W0Zpzc2skRlhd/YM8oHS69knhqwzJqjDRRedEs3gvAu0GPzmyqKdYmpHcJDC2fIEXY366nWaKNZwAGGm868Pdas/5H9RHBKgv1qRHxVLBk90wbQECJmHJ6AyYIJRKHvL2s00Ypk0HfP8oT2FxyLGO/1C4zDgGHs0UGIDkRm/OKy1KfuIiVL00T0gjkcN3WTYQDNCrT19grMUtRxyGzincblzP5FzbaE0ZMSLc9sLcRWCSCS2rQIwR1EAbjqbmjDcSAzWh/+eieLs5QHTl31ney59dQZcM5q0gwz8lvbj6tAWv6iYJIwUI58m7NGuO/9SiOV8w7nQyfO2mx4RHQIAs2JY+MQfAUObkzZDmcOsedHyWfyXVKay8AXDfZIbyniP8Czm4kxfb7ukFp/oz5wFGTUQbjCpigjP9F0bb2rrZOQ5L7a7VxOd3ctmJKAg69bEFDbd38ak/YLO6flbzI7mhnl4vr7RxwTJpJ02G7zLLUr5bF8aH3wJcGcU0GcV/hSdkA5SyCWzcDDGUCUhsORBytzAK0blPMjJog0Q1VJ2yevQwM5PTFHCka1L9UgJI+ldbk+WiNrj71RycQfplnGEwIjgOSWgp7i/8bMsx0Mhlmmla4L24Xg== 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)(136003)(39860400002)(376002)(366004)(396003)(346002)(451199018)(110136005)(316002)(66946007)(66476007)(8676002)(66556008)(66446008)(76116006)(64756008)(8936002)(52536014)(5660300002)(122000001)(38100700002)(86362001)(38070700005)(33656002)(82960400001)(41300700001)(53546011)(71200400001)(9686003)(26005)(6506007)(186003)(4744005)(55016003)(2906002)(478600001)(7696005)(83380400001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?wxH5lJmYDWVGbrSkWc/hjMDutOe0hIR06DOl76vj/Akjq8TB0BU+Lv2vx7Sk?= =?us-ascii?Q?NXyRMNRZ/3yP9lkCQUlOYrmtjHTuaau/G5BClvShUNXDRUiJcZ1HwTeBcxiu?= =?us-ascii?Q?52zZASLcXVGlgXRh+4l0A/zQ+yDEtx+BX0azEnOvwGnqTiRzZPxJMhUjssVA?= =?us-ascii?Q?dZIRYya7p4XL5VYoI9n61OmXXhoouuz3JklXkmCA4MijJGLffW1kYrnFF0RH?= =?us-ascii?Q?AVOTkZHtQGzZeR78QPWYJxt/Ua9BTI/8t2qFBdFKqgittRy4ePgeHbw7RuQ0?= =?us-ascii?Q?0577a8TY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Od?= =?us-ascii?Q?NyS4+gJW+EdVP+aRUOSzD5DcAvbs2Q1Sk3mMWm7iDR5edRIQCIQ9nrM4MvP7?= =?us-ascii?Q?4vGayDQxBzccUcjcPWVtFFIRIKuWVeiQYA8r8neoMWEBCsAun9wl0LydIRS2?= =?us-ascii?Q?De337nkFuyV5U2aXe/b3loY498ZLuAwHTtXD6w1C/trnpvEnqm4PqI9WjUfJ?= =?us-ascii?Q?rF2QL8IPgDcu5pUKVP9I0/fBsWThOj5eqlko9eri0P1RZBH/xNqaLgmE6yU2?= =?us-ascii?Q?Rw+XuH/QX4GKuU6YswlPq16TSWKDJHqb/b/Eos0dyB8PU5d+Jk28oc92FxgG?= =?us-ascii?Q?hzKp5d4pbkw34qiqYHUEdLLvq1BEFnT3BtmDX2ENzLKyZzxVlLTeJq9p3bwX?= =?us-ascii?Q?skXvguifDsWSu/RDrziOssOyC8Z/CbjtXAeJadEq?= 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: ccc032d9-579e-450a-4651-08db029708c4 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Jan 2023 07:53:11.2830 (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: R98Wi4FwEw2MF+qa7xPW2yUXH+Ator9pJZ0fvX5Bp01om2lObgwepSoebTWefevAhoSoZEedY7JL3pQgUXnwrQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR11MB4990 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:56 PM > To: dev@dpdk.org; Xia, Chenbo ; > david.marchand@redhat.com; eperezma@redhat.com > Cc: Maxime Coquelin > Subject: [PATCH v1 11/21] net/virtio: extract virtqueue init from virtio > queue init >=20 > This patch extracts the virtqueue initialization out of > the Virtio ethdev queue initialization, as preliminary > work to provide a way for Virtio-user to allocate its > shadow control virtqueue. >=20 > Signed-off-by: Maxime Coquelin > --- > drivers/net/virtio/virtio_ethdev.c | 261 ++-------------------------- > drivers/net/virtio/virtqueue.c | 266 +++++++++++++++++++++++++++++ > drivers/net/virtio/virtqueue.h | 5 + > 3 files changed, 282 insertions(+), 250 deletions(-) >=20 > -- > 2.38.1 Reviewed-by: Chenbo Xia