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 E4E30A0350; Thu, 27 Jan 2022 06:54:06 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D074142769; Thu, 27 Jan 2022 06:54:06 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id B4E7C4067C for ; Thu, 27 Jan 2022 06:54:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643262844; x=1674798844; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=EQAVQATxQMXoj22gcHuJAqr0DVT1uYHWmXH/RUD1EjE=; b=fxO8EQS7KB771Dqp8gn+Vr8N0L4bbLm7nKBqlEAPS+S6qiLtxhh/QpsP nu1t1iB7yXRKPMFaXczGDX61OB/VbFgq7Ed+6916Su893PudGbRM33NtD MQHbrdpiS/NTcaYys5EMs6tt5zbIkr+7i39baUFCmvJIj1vonE2kF4WVq MZxXjrelC7kQbH2xgzBKCmin2/GTZmnP+ZinRAvOyHycROUtTp7BFuBFs 0V7u44iytQ8oS/aHMobYlk5D2Kqb20jcigK8qW+HHBzc5Nw5QEqhaZKRv z3ho4whCyY+C7MAeE/emwc85TgzMfqkh2el31M3pZW6erN+eIBPWAzVuc w==; X-IronPort-AV: E=McAfee;i="6200,9189,10239"; a="226732397" X-IronPort-AV: E=Sophos;i="5.88,320,1635231600"; d="scan'208";a="226732397" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jan 2022 21:54:03 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,320,1635231600"; d="scan'208";a="696518068" Received: from fmsmsx604.amr.corp.intel.com ([10.18.126.84]) by orsmga005.jf.intel.com with ESMTP; 26 Jan 2022 21:54:03 -0800 Received: from fmsmsx609.amr.corp.intel.com (10.18.126.89) 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.2308.20; Wed, 26 Jan 2022 21:54:03 -0800 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) by fmsmsx609.amr.corp.intel.com (10.18.126.89) 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:54:02 -0800 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx603.amr.corp.intel.com (10.18.126.83) 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:54:02 -0800 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.177) by edgegateway.intel.com (192.55.55.68) 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:54:02 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OWdmyV5YqVJonqX/gPkcowxriTnRQi2acpNjmM4iLUwwcMKWejQa2BHP2g46xM927RRbxInKq7haJEbjReWhWLxRCNHW1YzaI6XfhBYPJhROu/Q46KIwyKElLxBlh7pg8URPMQUtzq9nJqSJkjCIxHcs2DCwHJBcOmUqM+D/+MGzIoWrjeGUR6DBOAXMwOGjjOPcic6OlzMSEti3aX16NsqFxZlpGTNmoomDD18SoYORWbcRCBRLD2PdVgX7ppFyvq3brNOWM6bJKxzUTTjiNBb/E5o9D++yMBiDQmRnxsFANRkYHh5iBxjiJYHWZngL32wRECc9mL5A/GMtj52FCQ== 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=EQAVQATxQMXoj22gcHuJAqr0DVT1uYHWmXH/RUD1EjE=; b=Vn1AJm855xZKnPnUGZbM9mHMYfVC77uRyBBOr+ijm3t5DXF8D1WlDeyXkD6uqEsYjiqFUfB7+W763BespkZq2BrCzTInbFv1G9mDV0Tzgmd75Ugx7NRrxSeSOiLWU7jIg9alxjZRzWLrVyAQdoC4bXjns7B0G5n2C5mCewHHuxTwuvtMnR/s6opbF2b7Z3B5DG47riqLplhxvM6HVdjODBF8bxmA/ch2pBY0k562/IQ17C+MFwzQ+n13ZQ30PYDNZnq8yjrzs2AwOc26ov9QynZA6il6VKrg79+iAtFivEJxuRf+XfgAHcC84iQty83K9vUqYuj8WrLOigzeFpm2lg== 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:54:01 +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:54:01 +0000 From: "Xia, Chenbo" To: Stephen Hemminger , "dev@dpdk.org" CC: "Wang, Xiao W" Subject: RE: [PATCH v2 75/83] vdpa/ifc: remove unnecessary NULL checks Thread-Topic: [PATCH v2 75/83] vdpa/ifc: remove unnecessary NULL checks Thread-Index: AQHYEUt5c5Iet299DEKDOD6nDcqZCqx2Yd1Q Date: Thu, 27 Jan 2022 05:54:01 +0000 Message-ID: References: <20220124000518.319850-1-stephen@networkplumber.org> <20220124174719.14417-1-stephen@networkplumber.org> <20220124174719.14417-76-stephen@networkplumber.org> In-Reply-To: <20220124174719.14417-76-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: 2abbc56a-ca96-4663-3436-08d9e1596ae6 x-ms-traffictypediagnostic: MWHPR11MB1759:EE_ x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:404; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: z/TBe0Xv8OCB/S0SDwffLq5zaeti/lz1Xf4uiBdnfYvejk5sYW8ZRheGse82wxB9OeDhYIvB/5UjIOimhFo5XtLHfL42RP2vXDBhjiCpr+up4g5Hc5nIY9tUmgQIytlpoJSM7zq63l3DPmpDv4thhE/WIwWB7lkcyRqP53cjKxHPWR9uACBU8GgcAksoUTNCQhjqpmW3AmLeOYdUUo6jV67VNQG0lAK+31tMv4ypdVI7VUDpm475bu/l0z+/naPP61b5J348gt2aKI2ViW4dLRpxvwazdIL0PgUeFN4cDNcYyZjWi50O4jLTqgDrYzYXtWSbFluBpWNaAfsvd5yo8sZ9fa9/nOtUWvESdzJ3soYh6ri4QLh8TCbBeBqfli279EMl6+B83FAveaL9ijT/PLvlSi3DnQKqwHC8zQ1v8Nyw/0BPegbBfN1txBfnx8La3u2u7l0E6ZtVJiT7WipJfuc30gZ9OSu+9gZ3eHBkY8KCDSsW2Y/tawcUvA7JtBF6DLjbTKrYZw6zgSsVPuULeYmi/sJmPr4krdwcRGnXGVJxFnZILQ9Gj3knbSU9nd8DV6uM5RwxBD3OSx8ss11ha7iclRsKa+FR+sh9CvtOoCIgEuJ9+MxUUG/csyCBUW3dKW7dif2/mE2yi0n8l5YqrxWa5sSrm5fWEa7TqgnrjYzk9xrBq5pMWNG2bDdenS71nmBJZhakP4DIQcmXZPLAPw== 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)(5660300002)(2906002)(52536014)(110136005)(71200400001)(107886003)(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?ejF6WktYSlR2Yzk3NFN1YkxRekRaZDZKRzdEenBPcitZUUYxMlNsMHk5eVk4?= =?utf-8?B?S2gvOWlXc20wY2NhR0VVbGJVeG1ZblJxdlgyMzFDQlFmeWVCRGFxdHFyTzNF?= =?utf-8?B?ekVGMEF3NkttVFlrZlh1dmIxY2s4N0FNUzgzOEd3WS9MR01CaXVtRkU5VVg2?= =?utf-8?B?N2ZNKzRmWGVIM1J4a0s5eWk0WkZmcEdteDJRR1ZERTVTSDZuUi90Snk1ejhl?= =?utf-8?B?Qkg5U3VJdzZORHpzTVJDR2Y0U0s2VHFuOVZMSGtQTEQ2Z3R3R2FYVUcwSzJQ?= =?utf-8?B?U2hkNkl4YmpjYnNYY0w1MHhnRm50cThqYy9LeGtWWjFQTGFHQkI4Q3VMTGRG?= =?utf-8?B?WG1vZi91c2swMUdnWThuNm1OcHJ2ZWxDK3VuN2tEVUVIdStCS2NDV0V1RzVX?= =?utf-8?B?SjI5NG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0FONDlkMjFxYVBp?= =?utf-8?B?ZjAwN1ZLd2lQSkhwSzZVM2lRdnBKRmlGckVCVks2ckU0VFY4WWM5K2wrTi9o?= =?utf-8?B?d3BtcjVRTXAreTZ5bEZTWUZzV1BWaUtsVnkxVXpHeHk3dGdhY24vYStLcmJn?= =?utf-8?B?dGhFaDJuT0UwUnA1T0xnUEp2bFNnNHlNeGxPTjdGeVVESjd3aHByb1I4UTZj?= =?utf-8?B?UFhxQ2RlbElmU2lKR0xoYmNJWHVCblJRTmJSWmlESmU4RE9KbnFpc1J5dERZ?= =?utf-8?B?N29SUlJuYnp0QmlQdE5FTmxWaFZIckVTUUhJRnNUL2M1L2ZtTHA4dmliTnpY?= =?utf-8?B?ZkI1RzJEbE55MUNvN3UyWGhkLzBvLzdyWncyamJTQXVMekp0RG9DY2htazky?= =?utf-8?B?anlxcjN6WUZGcmtqNCtLMDErZlBwazNYeE05amY2ek55M2hhRjU1aUhNZGpD?= =?utf-8?B?QVdrT3JtTC9YNkhER2hBVGEzWitmaStNTkgySlA1S0RDMGMwVVp0NlBEVVVZ?= =?utf-8?B?TDVua3hkZlhBSm8vSmNGM3JuREtSMi9TRGRlTTJCcUN1bC9HZkV2c2o5TnYw?= =?utf-8?B?NXZCeWZRWnhQYlVoYWhLQ0I4MTFSeXc3eFJtM3l4TnJ5dFBEK1ptSmI0Wlp2?= =?utf-8?B?UGRrKytQaytIZ1dxN2dmNmpvZWtqdHpmODUwNHFpTEY5WENFNHpYeGJUeHBs?= =?utf-8?B?MzFwNlhwK2JUT003L1hLRW1WaDZ1OHZzc2h0WFV1R05tZVlhZHZWbTV1NkRv?= =?utf-8?B?Q01tYllhT21yV05lWXAyMWxVbC9uMFJocXdObzF6encwNllVcnRtbDErR2hE?= =?utf-8?B?dHkrQVRRckZmRHVsUTFSQjc5R3kyd2RuS0tPSGNMVmNiVzdvOGdtNE1SWWlO?= =?utf-8?B?Z2c9PQ==?= 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: 2abbc56a-ca96-4663-3436-08d9e1596ae6 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Jan 2022 05:54:01.0977 (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: pQEq7vNocL1MHCibdrCs2ha+qlQT9sbYqIb92XMrcp/22rwuW/zWDFQuUmkzQo1jt+tPqxs/okQPJONWNwGZMw== 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 IDIwMjIgMTo0NyBBTQ0KPiBUbzogZGV2QGRwZGsub3JnDQo+IENjOiBTdGVwaGVuIEhlbW1pbmdl ciA8c3RlcGhlbkBuZXR3b3JrcGx1bWJlci5vcmc+OyBXYW5nLCBYaWFvIFcNCj4gPHhpYW8udy53 YW5nQGludGVsLmNvbT4NCj4gU3ViamVjdDogW1BBVENIIHYyIDc1LzgzXSB2ZHBhL2lmYzogcmVt b3ZlIHVubmVjZXNzYXJ5IE5VTEwgY2hlY2tzDQo+IA0KPiBSZW1vdmUgcmVkdW5kYW50IE5VTEwg cG9pbnRlciBja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