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 9338BA034F; Fri, 10 Sep 2021 09:38:37 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 816CF40041; Fri, 10 Sep 2021 09:38:37 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id E2AFB4003E for ; Fri, 10 Sep 2021 09:38:35 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10102"; a="221051741" X-IronPort-AV: E=Sophos;i="5.85,282,1624345200"; d="scan'208";a="221051741" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Sep 2021 00:38:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,282,1624345200"; d="scan'208";a="480065463" Received: from fmsmsx604.amr.corp.intel.com ([10.18.126.84]) by orsmga008.jf.intel.com with ESMTP; 10 Sep 2021 00:38:34 -0700 Received: from fmsmsx608.amr.corp.intel.com (10.18.126.88) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Fri, 10 Sep 2021 00:38:34 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx608.amr.corp.intel.com (10.18.126.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Fri, 10 Sep 2021 00:38:34 -0700 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (104.47.74.47) 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.2242.12; Fri, 10 Sep 2021 00:38:33 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ho0wGExXuSPt8MIAI8ARhTkM3DaispiJ+ABPpLfttqLdEcg6HQohM059zzAXqAwFR+IeWRKk66MBMI39zP2HCX84jeZVyJIEjfXSHAM9G4NEHBJNzQV9/4nP15tBLCXAKuORyxgdw0ol7GOh2i66Fk+TY8roMPIFRP1SPXhntxN8udc9NSi8YpPDEzYS6HiBqtWAgI6FurwbgfbGhd5sUQgP/ugjBrGV6pwQT4Fnrflyw9qu9qx0MD5FUGRNQxIhKClzE3e+B7l3lhwWjITWqrI4CuNgGk5BQQNYVSW+qgsMvDy3deZjj8HWfkNnk8O0dWMLMXtXxO5CZ9kF1bCdvA== 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; bh=JVibBVLn09bF1tEjYboLc71e13ISOS9pWF6uzXJsvGU=; b=cRKtjNqRDNWSlPAjNf2GlxzkPUnr8A81U0c1Wtx0ee8hrnoNTRr5FsanW3duk/pRtLhS/CUtdf3s4dZhwhnwJ9QAQ1FgJwkO62WtZvmKD1atoIxRtG00X4/2JRAvii1gZGZc00c+Y4QAEwT7PzRH7tQxQS2Xfohx4Z291ZzeQA3o7KFIzfeQuldRLQT0W8K/8C3/9S+UuTFPQiE4n3D3eDumExL+FXN5x73GReHh5U92tEARZSmW7PHYvosowPGTY90Cyy3kj1mjM6XFDhFQLe+NiPuZ5+ymC6q/Yfkb6+vBxgYVSgzfNvlzvMjEQUmJ8bbl2b9ldqMxX2yXq/TBgw== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JVibBVLn09bF1tEjYboLc71e13ISOS9pWF6uzXJsvGU=; b=dgwRWmTFaW4k01elFzp/2ACLHxSK5ihvnsuqdNjUWQY7JXYpJDi5YDzyd9tf4yD24rO4j6ZtuJLZyqPDmN+DeLK195JWxyUSrLq1xHEQslQdLF5/CT7BSt9a0v3SBJ9e+dpYkw//CBQLgvGvUSgAK0mIiEftOle1iY7nstUgL1w= Received: from DM6PR11MB3771.namprd11.prod.outlook.com (2603:10b6:5:13f::15) by DM5PR11MB0010.namprd11.prod.outlook.com (2603:10b6:4:6c::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.25; Fri, 10 Sep 2021 07:38:31 +0000 Received: from DM6PR11MB3771.namprd11.prod.outlook.com ([fe80::ac5b:17ce:f5a5:4ee]) by DM6PR11MB3771.namprd11.prod.outlook.com ([fe80::ac5b:17ce:f5a5:4ee%5]) with mapi id 15.20.4500.017; Fri, 10 Sep 2021 07:38:31 +0000 From: "Yang, YvonneX" To: "Ma, WenwuX" , "dev@dpdk.org" CC: "maxime.coquelin@redhat.com" , "Xia, Chenbo" , "Jiang, Cheng1" , "Hu, Jiayu" , "Pai G, Sunil" Thread-Topic: [PATCH 2/4] examples/vhost: refactor vhost enqueue and dequeue datapaths Thread-Index: AQHXov0S6bNBYO0dPEOVJPsaH7nLYKuc55ZQ Date: Fri, 10 Sep 2021 07:38:31 +0000 Message-ID: References: <20210906204837.112466-1-wenwux.ma@intel.com> <20210906204837.112466-3-wenwux.ma@intel.com> In-Reply-To: <20210906204837.112466-3-wenwux.ma@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 01f96aba-ec6e-4e58-7c81-08d9742dfcf7 x-ms-traffictypediagnostic: DM5PR11MB0010: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2512; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: oJGOzsv1x0R0tLfQdFAC49CDKjRDOIpzEpIcMOcYP1vE6YjJiYYpt94Cg7BZNr1xW2I1MiaAqtT1645P9vEa0TRi9RLwCSPYWfhnobN8qjEgtZCgveQxGU4YdoTku0Ynshae6mgwmvJ1Z3iOu1PBKqMy+OJi1CX1JPA+HuJBxCW00I0JCe6tOnQUHiXB2+RXGBUkeccBMmIJpjv3+uHy5jJk2KLg120kIooT61c0HDm3RgOXzL+g7T2fOoad31EFLMXuW3e4U9iP1vOy1gYXWZJlHLoRHi0sR4cw6gEppw49tQaivcqwf6TkHCI4HkE868q6/Fd1kkU4utOpbJ9Uuk1lKCbJGX5ub0I15lvcb9eMmUgmE0XPLoGpdWIK2dv1KXaIzzFVzMTEL8xmg5e/i4L6zsZXPLTCYkrhiN8S2J5vQ+GVQPVkIJvRWEq+sZImRJ2f2YOaPrlAuz4eO7XKOQryjPgbufZCldLR3MuiRTIkePL+ue44HyFsuyy8ujrZ/RWkkYMXDya6BRsPNLECyIJFFHPc8JqVaMI6iqqSu1BJLNgSYShRUgX8FxhGJH/XJspiOQ+uwDDtH+fZX3IfINSau+arRZouyUI3Y1H/EH54lEXCwFjGrU7V7WDDB7qsDQMI4IdrsJJLjDXu6KV9DTzZGowpIcvfmG4UsqYEKtENBvl+5ElQ7bQ7qlEwN4qjQd92/548dyOW2fy58lyzhQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR11MB3771.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(396003)(376002)(136003)(366004)(346002)(8676002)(64756008)(66556008)(66946007)(186003)(55016002)(66446008)(107886003)(33656002)(66476007)(54906003)(122000001)(26005)(38100700002)(4744005)(5660300002)(52536014)(478600001)(8936002)(76116006)(110136005)(53546011)(38070700005)(316002)(6506007)(71200400001)(86362001)(4326008)(7696005)(9686003)(83380400001)(2906002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?wfJC+gOksdkyghL529Hj5/n0MxNKprZK9b9J4QdNVQ4tDzKxQqkmpBmNMdGa?= =?us-ascii?Q?N0sN/z4qtEIMFCRu0uF6lcGvPzrZo54P+b28EaP+UEvNOvfXTiGbIbjHapGz?= =?us-ascii?Q?NYUIeMVlxX3dvA0IY99RujFY7cpzDmKyzsGybwdrWbSY6PeNdtwqBw6fdUUx?= =?us-ascii?Q?AP9SD4l9z+P1pb6zN7T652tqI6Pkq4SKjr+ynJT99FLzdzH8aefaX4y+ejP8?= =?us-ascii?Q?AbmRsLEPZu7CMfD18fpoEJhiZ+OQLMZr8gcRy+AdOrNXCjOPvItAm54iRdxu?= =?us-ascii?Q?Q5xZK+2UFJ5/8eyvXZlQ8ZwKzjIu9Yw7A1S/ShV/zYxuHR1nmNTVK1EVQDnq?= =?us-ascii?Q?fa2fnEG3CQxjKfhz9qcbFO3u7GbkHkPl5m6BSsZPKK7IXIlzYva7MJZL0ALn?= =?us-ascii?Q?HBFr7f5E7iGhtLjgkOzRFU2rnJ3hDQwujN9Or0CsPw2Y3V75EU4W9gtBohwf?= =?us-ascii?Q?bGKtsZ+tnTAztauA22Du86iO+P+WeOZb6XwSlHwQIU81FE33fa8XKgMKSUUS?= =?us-ascii?Q?d/oZCt+bJZt/iVOBrIF05QGTGykdeIh7Jw+zPfX5EX43UqVQhPh1u2T5xiLn?= =?us-ascii?Q?+MhE+8FnAaK6I0mBKTjqehYAOYwS2Tx23JviPzXMnZ3aWroWihGBTzsbRoF3?= =?us-ascii?Q?L0kW/d+dI3TRzpZJ5/pG0SWmnIaG5pKlk8vv1Wcxr3bIslscGrEEpKTtxec/?= =?us-ascii?Q?s/OdFsIoEswgCgbatPCEmgsoXWdT4V/F1hMCn87PRLaXS9Chuxv9oeNdIUgx?= =?us-ascii?Q?4ztgmcoMALdoWVFeLlyH28e6KW6e4Tl8/K9rPMMHqDNdsZ2qUqI3dBXleDvq?= =?us-ascii?Q?nynTCjQkRPufciQtUeu0AOpld2NxBER8gATD+HnV4x3agNHJx2aGn4nRXMxM?= =?us-ascii?Q?NxndfA+ff6DZGyRXAC+RylfMUFqantTYAvN1MQfWboWZSQRj0wO/b2U4owKP?= =?us-ascii?Q?idfV/2+F6BEuZ99j4L/i9XVICFqPktN9u390sILASprwkqiWofpCqSaVsPEH?= =?us-ascii?Q?bpDvsoMi4e/9+dsBVFUu8dMaPlj9PuHxHR4oQ6V4IETFHuU7OUJua+udBO47?= =?us-ascii?Q?bj8zy2167p/KSOi0mEZnPQKO2yRLsxDyzwszkFMLE8FCpOxJQh8Lb1psgyf3?= =?us-ascii?Q?p2WJ+ya1q5R/j+nxBSkL596T+69v3oyyOahripBmmLjHj+oco5g47Hg8U8VR?= =?us-ascii?Q?uQG2IDApZjXQ1p7IIbmKgPWZICzikcHfzz/SpH3pTQRm8zJO1/60FOQTqZcr?= =?us-ascii?Q?aUHS94of8rg6JaAdaDb1p8Yr6tglSw6I1uUXg1n3gekxjAHGQVAotc4/YaCQ?= =?us-ascii?Q?GcOtqTdf2Lj6DrrKccRrTnLF?= 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: DM6PR11MB3771.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 01f96aba-ec6e-4e58-7c81-08d9742dfcf7 X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Sep 2021 07:38:31.4434 (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: dnXk9ctykAtXdN7B+PpIEL0p/+rHGNyvoNZli4vjsntDKcU0N7eP+uju2UYlDzeNwCuT1WnSjDKoocdyOXcuhQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR11MB0010 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH 2/4] examples/vhost: refactor vhost enqueue and dequeue datapaths 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 Sender: "dev" > -----Original Message----- > From: Ma, WenwuX > Sent: Tuesday, September 7, 2021 4:49 AM > To: dev@dpdk.org > Cc: maxime.coquelin@redhat.com; Xia, Chenbo ; > Jiang, Cheng1 ; Hu, Jiayu ; > Pai G, Sunil ; Yang, YvonneX > ; Ma, WenwuX > Subject: [PATCH 2/4] examples/vhost: refactor vhost enqueue and dequeue > datapaths >=20 > Previously, by judging the flag, we call different enqueue/dequeue functi= ons > in data path. >=20 > Now, we use an ops that was initialized when Vhost was created, so that w= e > can call ops directly in Vhost data path without any more flag judgment. >=20 > Signed-off-by: Wenwu Ma > Reviewed-by: Maxime Coquelin > --- > examples/vhost/main.c | 100 +++++++++++++++++++++--------------- > examples/vhost/main.h | 31 +++++++++-- > examples/vhost/virtio_net.c | 16 +++++- > 3 files changed, 101 insertions(+), 46 deletions(-) >=20 Tested-by: Yvonne Yang