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 9B3CBA0350; Thu, 27 Jan 2022 06:53:10 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8A74142768; Thu, 27 Jan 2022 06:53:10 +0100 (CET) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id A4B8B4067C for ; Thu, 27 Jan 2022 06:53:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643262788; x=1674798788; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=S/lmvbbVRykMRsO78nU4T+AeSqQCogFsY3WUEuRJFdU=; b=bBb70PTk5whj2QhpUh6dwYR1JxcgjYgcgm16/dpaGmgsFDtsGD2gYCm7 nvvEPNRxYNnLM88wmdtYpXGMS6P7WrxvNGbyytbtt4d0ENUa8z0dJ+1uw LzFy7cshnUdi20I2w+PdDIgP6om9URZ8knYlWT+Pw+2bElpGwahLErKrn QXlnlb07JfuT1l4ZsuguJPTlSW799pX2CbkB5fXbJCejB0zV3S+hX2SiH mpxFVboZ+Bgyk25szdnp8S2wHJVsyrz7LYxUwlB3VwU2Ylv5lGU5oJsBv fNNwJwuJ/ae/351PKaz97G3iwAKJImC/LjZ8zIZBN2xLSLzCoWstmc58p w==; X-IronPort-AV: E=McAfee;i="6200,9189,10239"; a="234132316" X-IronPort-AV: E=Sophos;i="5.88,320,1635231600"; d="scan'208";a="234132316" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jan 2022 21:53:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,320,1635231600"; d="scan'208";a="521086813" Received: from orsmsx606.amr.corp.intel.com ([10.22.229.19]) by orsmga007.jf.intel.com with ESMTP; 26 Jan 2022 21:53:07 -0800 Received: from orsmsx608.amr.corp.intel.com (10.22.229.21) 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.2308.20; Wed, 26 Jan 2022 21:53:07 -0800 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx608.amr.corp.intel.com (10.22.229.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20 via Frontend Transport; Wed, 26 Jan 2022 21:53:07 -0800 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.172) 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.2308.20; Wed, 26 Jan 2022 21:53:07 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OUb2i0R74gAQ192EoSbzpBMpnRN26T90LIpNmEJcmMuTFP0Ea4EE5wMHBRo5FuXjeIER8xnRZ9Pk/cBSiz7kdoNvd3ePljOqa84tZcg8JBSXqRb7PoYaYY3WeZkfprgJ0k6mJMSTYXt6Q7v8uvXbFnfxkxbGoKipSf9IG7wXwHBhoYZqdo9VIXLBgnmNdf9Nb4h2x0EAGIIg01T0JXCEYIWQduBpa1WosVquJ725XFuk7QCRj4c2snfhtawIVIk3QiGNm9BnCqIlVKUPtKSCvpayhvaqsEwbCcHEQjWMgwKtbCJvmXCj0l4oD2doKfzgH9i1BaRZRKtJXG8wfRDtCg== 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=S/lmvbbVRykMRsO78nU4T+AeSqQCogFsY3WUEuRJFdU=; b=lm7ihIj9s97rbmy2g3r1B3cExQb1GdD14fSv6RR4taft3An7uPuaXVNv+3yMEVh+HqcU4qtL3jsrgmzR2JkvqwnJlPFuMmcGW1h8OffPg/gCwEdTMLX0i9ubspH20qyUHMJeRz54Co9zugT26WndHVPw+xuonuv25DX8pQgs7IpXH2qyOxU1RM6HTODTl0soxePXZNVQul2NRhmbXfno/9Vvdwp6KsXu+x10N+tqadnaZivi8VLIQ/0X9EUHWMlCw8dVdYxZLtMxMbJJ8BSV6tv9B0bk/OItJuTdQ+CQVZI77EU5zSBQmwCPtl2wxZPQmLY9L39BjK05R9F99MiJwQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Received: from SN6PR11MB3504.namprd11.prod.outlook.com (2603:10b6:805:d0::17) by MWHPR11MB1759.namprd11.prod.outlook.com (2603:10b6:300:111::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4930.17; Thu, 27 Jan 2022 05:53:06 +0000 Received: from SN6PR11MB3504.namprd11.prod.outlook.com ([fe80::9d80:4063:d2c8:5c8c]) by SN6PR11MB3504.namprd11.prod.outlook.com ([fe80::9d80:4063:d2c8:5c8c%5]) with mapi id 15.20.4909.019; Thu, 27 Jan 2022 05:53:06 +0000 From: "Xia, Chenbo" To: Stephen Hemminger , "dev@dpdk.org" CC: Maxime Coquelin Subject: RE: [PATCH v2 10/83] examples/vhost_blk: remove unnecessary NULL checks Thread-Topic: [PATCH v2 10/83] examples/vhost_blk: remove unnecessary NULL checks Thread-Index: AQHYEUp+q+qK6baTX0e1DMQfGcN6Gqx2YaCg Date: Thu, 27 Jan 2022 05:53:06 +0000 Message-ID: References: <20220124000518.319850-1-stephen@networkplumber.org> <20220124174719.14417-1-stephen@networkplumber.org> <20220124174719.14417-11-stephen@networkplumber.org> In-Reply-To: <20220124174719.14417-11-stephen@networkplumber.org> 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-office365-filtering-correlation-id: c74e05b6-8be4-42f6-846b-08d9e1594a1e x-ms-traffictypediagnostic: MWHPR11MB1759:EE_ x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:15; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: TYcK6pjoz7L1Rh+wtJpfmzZnT/08rqJzz4A+ZHTDwcr5c676eVOgH1e4di2O7ESCuhG8f+qA+ZmuJ32/JWf/9RWIFIh896/vwnyvzfimJxWdl9IncEcqLpcI0SlOIWkk13n5xv8siXftHpgnbecTpnWPFw61fERSy3xrqX926neV2/lYdy8J8tQm34uV09F42spEzguAuvedABja4t8DOAALd8ihphSvbYxkMOVHOam34g+sEUsOEEmRnjBKxzRdo6ofD1LZhFmv5UoPwQNms+r1ulYjjHLj1Se3Inal0CYr2LUxw0ypD4eujD8ar0iScsWqukb6Prm0RO+NVQgN7L4ywxC6BNnYxTBH62po7XA3ZS5w/i1Li+Na2sBLaL1Ti4xdChFiQIy6HBrv5U/HLIz7Yo5hmIcgAST3gMldENOMn6Nv8Dg81/M/f9U3jUjj9hRgAqsITL6Hij7HOMmJNZEwhCm3bQD1PNjYQkBhHmq3OTBxQSfLXdSNkP9irFr8Gh6xBSp/LBOusbwe+uyMJI01jz6uz7kdEobrNDP8NAZ8JjGr4Ql5YS8ttFTEiIXwh8AOvznMkwQGlbWjHC/Be+Y4F5Wi9zEjMc3kFTiUuPeaZ8eRLRJZYD7ovWcvpXOtU/TWhclt9opqT0wQy1gRISgPqRlH5A225BQ2Gz1TIwNuKl7ByzFg77XWsVBteAvWhQCIRCO7WLqreCEdDbGB6w== 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:(13230001)(366004)(76116006)(8676002)(86362001)(4326008)(8936002)(64756008)(66556008)(83380400001)(66476007)(66446008)(66946007)(55016003)(122000001)(38100700002)(38070700005)(82960400001)(4744005)(5660300002)(2906002)(52536014)(110136005)(71200400001)(33656002)(316002)(508600001)(7696005)(6506007)(9686003)(53546011)(186003)(26005)(20210929001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?bXI4MDVodjFVUVdUdndoQ3RJaEhDWGxLWUVqNHNiWEhRM1BQVDcrN0tlYUNM?= =?utf-8?B?Q2NKOS9sZDNvaEdIejdKd0lod3pzdU53UmFKRzl2enZOU01wc0tmU3dJci9L?= =?utf-8?B?VWFLU2ZrL1pGSWFZRmt4VHNhQUQ5QlRhY0dJUGJUSEtiQlpjS2FEQ1ZNNUdR?= =?utf-8?B?ZU1aNmZhMlJjRlpSNG9aZTdUTjRvYkFQT015c0dvZXlxVVpiRU1nZjdaSkxN?= =?utf-8?B?SnFPWjNhRFVTbGxENVJPbldWdGRqclZpc29zU1g4Ymw0eXMyMlU0TkJkbys4?= =?utf-8?B?cGx3YmpubWxVYm5IbzZONmdYTzVwNEw2RTRmM2dpQkxqcmJVOXhIWUxaRWts?= =?utf-8?B?Vk5uUjFrb3JhUXZ2S1E4ZitqSUVFY2ZiQ2gvWVhIeHU3a0ljekhSZnRsS3JB?= =?utf-8?B?YWpaTk9adDFXRHZzQ3NSalpsaWJpMlpqK0Zrb2FoK0hQMXdCRGZPeFlqcFIy?= =?utf-8?B?NmRLd2F2c0pJeU9ZZW5uMFFrNjZPMG5SZzNFWkovcmJuSHU0MHJZSE8xS2xQ?= =?utf-8?B?YTJud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utf-8?B?d1BvMXcrNFg1V3V1SitydCtOQXlJRURSeEErb0tSSzdCUnBvNTVVV1pJV0pS?= =?utf-8?B?S0V1RUdCcUhCN1pLT3ZscmJGMjhGd2dCcjJjUTcvbU9tZElZK0ZTbmlhd2gx?= =?utf-8?B?WGFHc3lJU3pVZVdnRVBjclk4Um8xMFZ2S2wzVHREbU5LakFtOVhyUTVQT2xr?= =?utf-8?B?Q3dmTWMrZGJnNnhrWEo1Q0ZRdm4veTRnLzRLeFNyVGROVUZVa095QWFQeUF4?= =?utf-8?B?Ym5NTGdNaDRSR0t1dDkySUNGV21HcUUrWDU2TFNBY0FvNERFV2NPNEowaysz?= =?utf-8?B?UFBFQ3gvQlhnWHVFSEZ1Mm9ncnJYVE5KTkRMTEdYTy9lNm0zWkdKN1lXZ0dY?= =?utf-8?B?ZUJ6YmpZYzZBdU1ySGx4VFpYSWpKRjkvS2paZVlCQzRyaWJRN1VOamhGQi8z?= =?utf-8?B?eUQvUlZqb28valZCS0Vmb1MxNWtHK0JjU01uTFpNTEw3Tnk4enhTREtnMVBU?= =?utf-8?B?OUVPVkVsbXVYT0xHdGdCQmNabEJybkpTNWMwWGFheEpBYU9SRWVaOFZlSURU?= =?utf-8?B?WTNsZzRyTU8weTFvSlFjYVQ0emgxaURpd2p0ZHVrTGZKZHZwdFdlS0t6TXVH?= =?utf-8?B?YjlOSlpldWFVR3BzQWtCYmFYZzFJUkdnS1QxTDNGWis4Rm9sQmVBUnpkNXFE?= =?utf-8?B?RHRLRkN0bXRmM3pYemxCUGpIR005R1dKRy96K1dhdDlPSHZvMTdXYmpPaEZZ?= =?utf-8?B?NXc9PQ==?= 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: SN6PR11MB3504.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c74e05b6-8be4-42f6-846b-08d9e1594a1e X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Jan 2022 05:53:06.0863 (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: GW6gsvrO7CagfRQj0MlsYT5Yn3ILsVhrT3WKlSRbZq7TYmdH3d77tzRuP8OrhWoeEyhSE5CFr6C/3aTbeVLUIg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR11MB1759 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 PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBTdGVwaGVuIEhlbW1pbmdlciA8 c3RlcGhlbkBuZXR3b3JrcGx1bWJlci5vcmc+DQo+IFNlbnQ6IFR1ZXNkYXksIEphbnVhcnkgMjUs IDIwMjIgMTo0NiBBTQ0KPiBUbzogZGV2QGRwZGsub3JnDQo+IENjOiBTdGVwaGVuIEhlbW1pbmdl ciA8c3RlcGhlbkBuZXR3b3JrcGx1bWJlci5vcmc+OyBNYXhpbWUgQ29xdWVsaW4NCj4gPG1heGlt ZS5jb3F1ZWxpbkByZWRoYXQuY29tPjsgWGlhLCBDaGVuYm8gPGNoZW5iby54aWFAaW50ZWwuY29t Pg0KPiBTdWJqZWN0OiBbUEFUQ0ggdjIgMTAvODNdIGV4YW1wbGVzL3Zob3N0X2JsazogcmVtb3Zl IHVubmVjZXNzYXJ5IE5VTEwgY2hlY2tzDQo+IA0KPiBSZW1vdmUgcmVkdW5kYW50IE5VTEwgcG9p bnRlciBjaGVja3MgYmVmb3JlIGZyZWUgZnVuY3Rpb25zDQo+IGZvdW5kIGJ5IG51bGxmcmVlLmNv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