From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id C7AF0A09FF; Wed, 30 Dec 2020 04:09:24 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8B00FC9D2; Wed, 30 Dec 2020 04:09:08 +0100 (CET) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 077692B87 for ; Wed, 30 Dec 2020 04:09:05 +0100 (CET) IronPort-SDR: 5rcae9VGa4rkLXPe7Xn5+o04DaV3ijmMGBM8MRy4zO7NULsiv8adLnDhvuvKchLkYSh6nfa/Cf ay5CSmwnaaJA== X-IronPort-AV: E=McAfee;i="6000,8403,9849"; a="163626224" X-IronPort-AV: E=Sophos;i="5.78,460,1599548400"; d="scan'208";a="163626224" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Dec 2020 19:09:05 -0800 IronPort-SDR: /DHQ5qkxKfCluqE1LIqGMu6DtKgsDkMjAOZMhThqwvR5nEuGoXCEODDzt3ey8SXgt5u6vzV7Ao o4z45W0QvjKQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.78,460,1599548400"; d="scan'208";a="385053426" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orsmga007.jf.intel.com with ESMTP; 29 Dec 2020 19:09:05 -0800 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 29 Dec 2020 19:09:04 -0800 Received: from orsmsx606.amr.corp.intel.com (10.22.229.19) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 29 Dec 2020 19:09:04 -0800 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx606.amr.corp.intel.com (10.22.229.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Tue, 29 Dec 2020 19:09:04 -0800 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.171) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1713.5; Tue, 29 Dec 2020 19:09:03 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BB+XBTnXA3wz17QR7/AF9CiYbwlDC1oRTZjJmNyEvR8Qpl8/WUcua9aXwL72Y2y4nFoJ7v5lMYCf+h0MfOrKGvttxNhlJ8CpUMK8Fih+YUAoMD8nbt9did6y4h/03/8awf7Bg34CiXovoQG2r+ZYc8Vydkf4GfWMADn7mvq3JYuXyA9UJEF8sF6SCy+QneXAP64uagaSb67RolxSBZz8q0hozghhMKG18nj+9eu4aB/O32GMoVmb2Tr+qZpGQaJASdpfSNv0ukt1TnOHODu0Qtw0lNS8PiC+zS6AtqoUw741T0itfAiVR1LRjtb6xMEKdTdob8AAjqUwn+MCmAIF8g== 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-SenderADCheck; bh=3kvj1jhYTM4U6LvmTN0A1jVNzUEwHPRGG5wJoY96wKI=; b=Xuw6+M6wpJED4ItV12iglPCGtc0ELUEQEniquC+aGxsoGMEa7UCRzy5v7eKuTpyviDqRiD4aiasicLpLUVx9zI1e5s79ZHirSo+OIcVakuBj9RJXOzgxFdDTUrPjgLIhRLgczErqgwfrr5wpHH8cVAfVVE31rmU3ASMtc92ehzeXdj9yYy1ttCFfRNQfT8+Xgx07xXU0Cyph0qYv7T0EBZiIn0UoRlw+/GF/luforo3yOa7bd5HGHtprxF8aaEtlwsdAKf3wJDCe26BszZqWnmhlPm3NqncqlSYclpsGX7WPQwAE88ZEbZbRUFLSEGXMGTsPSKn/qam0zwMEXCBtew== 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=3kvj1jhYTM4U6LvmTN0A1jVNzUEwHPRGG5wJoY96wKI=; b=folejjORKqZ4mmcFugARTlY7Gfp+NUN5Q08mNsMy7fpOOApA5zJGotpqAKq5rUY4jTKQulS3fIfzq8aSKX/kY6O1y3pKwbvGb6G1DrpfD/CPVTVn7m7kWre786ufo+SEIdglwgHKkufdYoquP0zcbNXZN5g9enZZyfxB2pu5Mqg= Received: from MN2PR11MB4063.namprd11.prod.outlook.com (2603:10b6:208:13f::22) by MN2PR11MB3581.namprd11.prod.outlook.com (2603:10b6:208:f0::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3700.27; Wed, 30 Dec 2020 03:09:03 +0000 Received: from MN2PR11MB4063.namprd11.prod.outlook.com ([fe80::74f2:ba7f:cb22:5272]) by MN2PR11MB4063.namprd11.prod.outlook.com ([fe80::74f2:ba7f:cb22:5272%7]) with mapi id 15.20.3700.031; Wed, 30 Dec 2020 03:09:03 +0000 From: "Xia, Chenbo" To: Maxime Coquelin , "dev@dpdk.org" , "olivier.matz@6wind.com" , "amorenoz@redhat.com" , "david.marchand@redhat.com" Thread-Topic: [PATCH 14/40] net/virtio: pack virtio HW struct Thread-Index: AQHW1xU5ztn6pwyLR0K+kBN4SwultaoPBAOw Date: Wed, 30 Dec 2020 03:09:02 +0000 Message-ID: References: <20201220211405.313012-1-maxime.coquelin@redhat.com> <20201220211405.313012-15-maxime.coquelin@redhat.com> In-Reply-To: <20201220211405.313012-15-maxime.coquelin@redhat.com> Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.198.147.218] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c07e5eb0-d92a-4ffb-0047-08d8ac7042d2 x-ms-traffictypediagnostic: MN2PR11MB3581: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3513; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: CWKpHJAWeUF11o75X1JDRzHiahjnTvZAW74gYv7UHpegUJ+tmdi7XkAi98i54hu7PCmquPA2q5qmDLAQtr9phPugCCv3JyLzLqBB0TBoFksVMpa/p3QUndHoNwLS6BN1U9ObUbQf7GXAW5PxpF8PG8HKAIGYP4v4eiYKl9zq6G3xHIjsrpc1DpvJ5fr9KlLNAs6ZDhyaPy1cxvlS0OSZuu/rOt46UQyOUWj8DiFfWgFRSL9MNr5qvqzDo5cq6C27qolOCNn4wDpdlyVTQXsITCuhYIYlmclN8Qjp4hL7G0eKXLypWyKcbUgIfNhnythsDPFNPo2JCluEPv+dpreMYXkc8jEePTnXKY9NPhMK685C5EKJ0sPGafMPj/ch0sC2nwWBeiWFeniYrd9zm6fysQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR11MB4063.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(39860400002)(376002)(366004)(396003)(346002)(9686003)(55016002)(64756008)(26005)(7696005)(66476007)(66946007)(316002)(66446008)(86362001)(83380400001)(66556008)(2906002)(33656002)(8936002)(76116006)(110136005)(186003)(478600001)(52536014)(53546011)(5660300002)(8676002)(6506007)(71200400001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: =?utf-8?B?dUcxSytSMEJRUFp1OVVyUjRWTXBSZDd0ejg5QUFDV1NaWlYvczJIcjc1WWU1?= =?utf-8?B?b3JFalMyeU5xa2VYRjFXZjBMdnl4bERqQy8yK01EbTJobnZLVHQ5bVQ0WDlm?= =?utf-8?B?VkxrUHI5RVZTZklVcVFtQmIyakpFcjQ0RFlMMFJqVG5jQXA1OWxiQVBxWXBo?= =?utf-8?B?cHJxdzltdk8wNnJnODBMWHJuemVJM1lNT0dHUU5JZjFzdEM1VUR4S0dCNGcw?= =?utf-8?B?OW5oMTdvbTlQRHFacTREKytFeDlXYkhQOVpyOUZCanJNdzMzZ1phU3NIYzlr?= =?utf-8?B?VTRUY0dNSzNFZlgyWnU2eFZNZnVOc0hJcXFxYmJrb0tESkw3T2xEVnJjWmhO?= =?utf-8?B?bGpuTjkxNEkvSG5wS2ZobUxJZ2dGSDhxMEFDZVd1Y0JDRmYxbXljblFHdThw?= =?utf-8?B?VVFYLy9zT0NuSzFZenVLd2tydnBDRks4b3ZnTGRXbHI4bkdBSjR1elJ3blRX?= =?utf-8?B?QkN1VmwvNnpoOXp2SHBBOWVSUWlWeHBmRWFlYU16eWlTOUduRHNVa1kyeXlj?= =?utf-8?B?bTl1Y3VhR21zQXFraG1VMEN1RkJjaUdDSkNHRG50MFhWdDc0RmtkM2IyR0RT?= =?utf-8?B?bWZmcFRHY01acmhvVU92a3hpUmZ5enpHK2NPQ0huU3YwL1FkMU9KaktPQmpu?= =?utf-8?B?Y3p5Q3Fnazh5eWYrOXFVQTd1SkxqMy9aUzV6Z1hvQVQyNzQ4bmQxWWJrU2Nk?= =?utf-8?B?bmJRMzNORTZFZDZwZFByNG9rckNVanVWNmR1OC8vdlFMRXBGalZUTTR5WWxh?= =?utf-8?B?VCtKSlJRVjlrdW8rOU1ncCtzc0lQdHRUMEVCWjNBSXRlVW1vNjI4TllVU0pN?= =?utf-8?B?TjRLS2ZuUno2bFZjWStZVWFLblVoeTQxRW5jdmZzY255N2FrVzAvWDFZWTRC?= =?utf-8?B?cVJzbnRqSktONnFwM05ldEpiT0hsYkVxenRneDBhVndGZks3RGhYSWRPV1kz?= =?utf-8?B?bDQvQWxIN2N2M1dCcVRob3d6RmpUbS9YRXlaU1dlejk1Vis4YUZDUEVRNVFR?= =?utf-8?B?TVR2T3Y3WVpVVmdiaUxSUmo3NVczZHBTZ2kyN3kvd1VCRUUrMEFLbFFMU1py?= =?utf-8?B?T0FLMEJKdEFzRXNwSkRBaEtDVkEwKzBjWmdqdDJmVFBmcTZJd1dkb0lHcWRI?= =?utf-8?B?V1IwaVROTi90bGVlbUp5YzVLb0llUTNJdFdtUENrRWNLMm5XalNMZGJlNThj?= =?utf-8?B?cFY0cVBOaUdpMy8yaVlOdVNvczZ6dytsMEMvcGZFRGg2VU0wNWt6eFYxWjMy?= =?utf-8?B?T0tESjhGVHFRVm52Z1JDVlJvaC8wVkxNbzJlVDNZeHcrWkFITFg0YWQvZ1I1?= =?utf-8?Q?LObHfiTn3AwUM8vCf2J8AI5cnHLgTotvYn?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN2PR11MB4063.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c07e5eb0-d92a-4ffb-0047-08d8ac7042d2 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Dec 2020 03:09:02.8969 (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: pR2OOzy1u+kZBXwXgbH0wwlJNyU6k1zRz6PAUIczjiZFnm1r+7b3W5ZFSSw8ZX1ebKvn1T35AlVHsahl8pBcIg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB3581 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH 14/40] net/virtio: pack virtio HW struct X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBNYXhpbWUgQ29xdWVsaW4gPG1h eGltZS5jb3F1ZWxpbkByZWRoYXQuY29tPg0KPiBTZW50OiBNb25kYXksIERlY2VtYmVyIDIxLCAy MDIwIDU6MTQgQU0NCj4gVG86IGRldkBkcGRrLm9yZzsgWGlhLCBDaGVuYm8gPGNoZW5iby54aWFA aW50ZWwuY29tPjsgb2xpdmllci5tYXR6QDZ3aW5kLmNvbTsNCj4gYW1vcmVub3pAcmVkaGF0LmNv bTsgZGF2aWQubWFyY2hhbmRAcmVkaGF0LmNvbQ0KPiBDYzogTWF4aW1lIENvcXVlbGluIDxtYXhp bWUuY29xdWVsaW5AcmVkaGF0LmNvbT4NCj4gU3ViamVjdDogW1BBVENIIDE0LzQwXSBuZXQvdmly dGlvOiBwYWNrIHZpcnRpbyBIVyBzdHJ1Y3QNCj4gDQo+IFRoaXMgcGF0Y2ggaW1wcm92ZXMgdGhl IHZpcnRpb19odyBzdHJ1Y3QgcGFja2luZywNCj4gZ29pbmcgZnJvbSA4OCBkb3duIHRvIDgwIGJ5 dGVzIHdpdGggYSA2IGJ5dGVzIGhvbGUgaW4NCj4gdGhlIGVuZCBvZiB0aGUgZmlyc3QgY2FjaGVs aW5lLiBGaWVsZHMgb25seSB1c2VkIGluIHRoZQ0KPiBzbG93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