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 08D94A034E; Mon, 21 Feb 2022 03:47:22 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E6A0B410E0; Mon, 21 Feb 2022 03:47:21 +0100 (CET) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2058.outbound.protection.outlook.com [40.107.21.58]) by mails.dpdk.org (Postfix) with ESMTP id 5A0B540395 for ; Mon, 21 Feb 2022 03:47:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=prX+SqirGE20OzONI86/Gqmlpv6HjgYouPf5AU++IGE=; b=7ApiN2zNe+JDjfGJvmj9psshnElPaJWY44yexsGiPQohEJZ7deNR9qX0CFWpmHgWJA8zpe34Xd5yuFHCd3eQdMIEfIGBCia3FCrM4FF6gFv3ApM9k1l+NE9DfpGXkzE3aMVZElfbChnaJ26K8sgZcG7JNirZiKtLUkwOg/1dXUI= Received: from DB7PR02CA0034.eurprd02.prod.outlook.com (2603:10a6:10:52::47) by DB9PR08MB7161.eurprd08.prod.outlook.com (2603:10a6:10:2ca::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4995.24; Mon, 21 Feb 2022 02:47:19 +0000 Received: from DB5EUR03FT017.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:52:cafe::1d) by DB7PR02CA0034.outlook.office365.com (2603:10a6:10:52::47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4995.27 via Frontend Transport; Mon, 21 Feb 2022 02:47:19 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT017.mail.protection.outlook.com (10.152.20.114) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4995.20 via Frontend Transport; Mon, 21 Feb 2022 02:47:19 +0000 Received: ("Tessian outbound 1f399c739551:v113"); Mon, 21 Feb 2022 02:47:19 +0000 X-CR-MTA-TID: 64aa7808 Received: from 954b0a140d3c.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 5B3A5946-3395-4F9A-B513-BFA0F128D12F.1; Mon, 21 Feb 2022 02:47:13 +0000 Received: from EUR04-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 954b0a140d3c.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Mon, 21 Feb 2022 02:47:13 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jTD8fuECaCaDZ+WYlCI0QjF5QZp3FZIisMtgLczSrxRjT/c+ABVsudW9MvfaEr0PWfNf+sOHBCVyc0Dpx3lBxDsoZ//MUVWjQfmgRwhny2BPg0W3lBQ4wT+7GjHT4EtsXRNXVWManuDUBLBFFjaVf7Va03nqLEtlHkvzPWawt+4jYpZWK2Z1a/5I2BxPj+dg8DHv6p8anvFa6pVCeQfwRSI9BTUJER1d+ndx0ZZvv3BPEiIu0nIKoQ8NOEpm8QQOQhyBjc9UP0GvYQUtr0NeGnA2d9VSn3JebfIp3oAbl4eXmbX8sMh305NoAdKpmutfc+zWcdPu7GPlzCPuMEylYw== 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=prX+SqirGE20OzONI86/Gqmlpv6HjgYouPf5AU++IGE=; b=MXLP/LMvkqY0E9QGvr8h7hE6mt23iX4apMmmg0b4CmVOvn7EaQLCCnCa8Yd7hyG6EWH8cYMLEudvgOClIk/H22Yvr4SJ4LcPrmpbv4kw0CRRSTHMw8OcxhU4jmbCiVANoudjIlQblNJbCxYhZvUTLenmjxczO3LzkkIgr2j12TE1Gv3lNv7TdX+RELmWPsws9c/yG9jIc0K4c9iRiy7Zsd8GVX63X+dm4IDjI55m63oT/LMupO9L0gQtHgpdq9xNutYgZc05LlQyBVrD0bR2Pn2mOpc6XavVO2ioUupujMRVBDge68m8TYbngMQ3Zxp6vLWSo1u0ilToOm9AfavAHA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=prX+SqirGE20OzONI86/Gqmlpv6HjgYouPf5AU++IGE=; b=7ApiN2zNe+JDjfGJvmj9psshnElPaJWY44yexsGiPQohEJZ7deNR9qX0CFWpmHgWJA8zpe34Xd5yuFHCd3eQdMIEfIGBCia3FCrM4FF6gFv3ApM9k1l+NE9DfpGXkzE3aMVZElfbChnaJ26K8sgZcG7JNirZiKtLUkwOg/1dXUI= Received: from AS8PR08MB7080.eurprd08.prod.outlook.com (2603:10a6:20b:401::19) by AM9PR08MB7000.eurprd08.prod.outlook.com (2603:10a6:20b:41b::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4995.14; Mon, 21 Feb 2022 02:47:00 +0000 Received: from AS8PR08MB7080.eurprd08.prod.outlook.com ([fe80::480c:9fce:af8a:520e]) by AS8PR08MB7080.eurprd08.prod.outlook.com ([fe80::480c:9fce:af8a:520e%8]) with mapi id 15.20.4995.027; Mon, 21 Feb 2022 02:47:00 +0000 From: Ruifeng Wang To: Stephen Hemminger , "dev@dpdk.org" CC: Bruce Richardson , Vladimir Medvedkin , Yipeng Wang , Sameh Gobriel , Anatoly Burakov , Olivier Matz , Andrew Rybchenko , Honnappa Nagarahalli , Konstantin Ananyev , nd Subject: RE: [PATCH v3 3/8] lpm: remove unnecessary NULL checks Thread-Topic: [PATCH v3 3/8] lpm: remove unnecessary NULL checks Thread-Index: AQHYJobNb4W4V/mQpkuRumEH+tgCVaydTQkg Date: Mon, 21 Feb 2022 02:47:00 +0000 Message-ID: References: <20220219234322.61309-1-stephen@networkplumber.org> <20220220182147.9750-1-stephen@networkplumber.org> <20220220182147.9750-4-stephen@networkplumber.org> In-Reply-To: <20220220182147.9750-4-stephen@networkplumber.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: A0144DBBD5F4734C938CE83BDBC55B89.0 x-checkrecipientchecked: true Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-MS-Office365-Filtering-Correlation-Id: 23d80e27-4d28-4005-86c7-08d9f4e47a4c x-ms-traffictypediagnostic: AM9PR08MB7000:EE_|DB5EUR03FT017:EE_|DB9PR08MB7161:EE_ X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: 1Zm7DjFRpB7/lcDMnFWTHAqM3JwowDNqWLGRPxsfdmSSJuVlOGhDAkSJqNNU2csSpAV+HAnhCvGiOaMVK1lxhUPnbwd8zNtcPvjfuZ5FjyYBvHPyNJrhilKUdr1AQ/hdFHeQ6nlAnIOZtsX00vBzHPXiuDtOgQ9p1sm/6FStiYTi2TFXE4+32+QBrfy2t/i3xKno+9Z05jTsfSPsmOLx7h3ROtR8iiE/ynw3IwAmxonWIQDXFCmU99XVtBhpkjbc4hU3GeGjpK/3OmaCNq3t//ay3PiqTy/FqiYz7/dyXYur8T2xoiGO+DCJ6PTQ/kBW1EnQD9QM7f9/3Me/EJsfH/GF5pwqv5YG1RAwSa56kKyFQctBJsBcVnRC+YPb5y8Kg75+/5K05lH5wSNWJqReoanVnEpWcBNWwesLoxq/ovEvT0W4SnUnpix0M9JAi/4bynhgRUtT4T8ikLIc5hxnA0tNfvRUDPq5Lr9CK8aotAeMRaUtXLGY3ZICyoc1DYwtrAjN7SRVRdGaCGvi7elRAjOkX6bhHE4NeNJOAGqePHmMMo9wFMSLcLWpk2H2w3o75VAodQ3WwZ4dS193Rdcgl9fl8F8/hR4mkYNflY8ZYRVJ7bzjFqVi7zgyoLjeqVeLK6D0OJuSuiRR62vTZaYV84muJu0QrSfCAdUQQ9KZUEYeAml5I9CSR6y0XCD4nCTaleAELbXX2zxtWnpHm6H8pA== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8PR08MB7080.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(54906003)(110136005)(52536014)(8936002)(26005)(7416002)(4744005)(5660300002)(186003)(76116006)(83380400001)(66476007)(66446008)(64756008)(4326008)(66946007)(66556008)(8676002)(316002)(122000001)(86362001)(33656002)(508600001)(55016003)(38070700005)(6506007)(7696005)(71200400001)(2906002)(38100700002)(53546011)(9686003); DIR:OUT; SFP:1101; Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR08MB7000 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT017.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 399842c4-253d-45a0-6446-08d9f4e46f31 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FyceFibeq6NwIS+F88JymqKpvKLYgak6tq0e+L70/FS2j7xn9zgDQDbRlE4E2y2oOlTGKfWIncJ3ogDzJzUso9eqNOX7g1zT6Wu/iCS5rMTi/1nAbXZZlGOBmU3RsJFkpMY+dQWPuUoyYrPStCq9RFFGwEbdmuKGs2tMzv9USHN2eX4SarRjPwgEb2u+bXWfdVVO1YJmVk2qXvsMkGs2UqQLfteeMtP9GieLtt/0wiLgxEJ8+i+0pclAyvGa8jSnP7Lsvfr1wx/9tzJIii4HMscRo6UVBwi5vcjx/2cNiLfwF/t+PJW1BeY/Do5TsrzQYCzJk01y7kvzNfrY1e72ww7iPAW49FwZpzS/9uRi90/Yo3mBLRQ3UeV94nBRWS2ei0Z/oggC5YN4kirq3od1m+nyt9HOZj0kT2eQuv+75PrklDhpprVWLTTLYx+v6XaVQ2u5Cy3+oorIj58OgF8H5hbDa6I8Y6sGs4DUBdFs28OFDUNmPVH7U6vZKUXNO3VDL/Pt+DEt+qbxg40p9kpCHdZYPfvUhnKLvn4WIaPD+KBYOGDBFxnnnkbCL764oheWfFvM18rOzpA93fFjXZonhOwtUwG2CpgdMqx9mh6MG8UEEPR+UuMknclhZKJt7B6ke55nl23/vtJCC3+bvtMVOBuxaPceNsurpmhkO3CNyPg= X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230001)(4636009)(40470700004)(36840700001)(46966006)(110136005)(54906003)(52536014)(8936002)(26005)(186003)(5660300002)(70586007)(70206006)(83380400001)(4326008)(8676002)(81166007)(356005)(82310400004)(316002)(86362001)(336012)(55016003)(508600001)(40460700003)(6506007)(7696005)(2906002)(36860700001)(53546011)(9686003)(47076005)(33656002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Feb 2022 02:47:19.1036 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 23d80e27-4d28-4005-86c7-08d9f4e47a4c X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DB5EUR03FT017.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR08MB7161 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: Stephen Hemminger > Sent: Monday, February 21, 2022 2:22 AM > To: dev@dpdk.org > Cc: Stephen Hemminger ; Bruce > Richardson ; Vladimir Medvedkin > ; Yipeng Wang ; > Sameh Gobriel ; Anatoly Burakov > ; Olivier Matz ; > Andrew Rybchenko ; Honnappa > Nagarahalli ; Konstantin Ananyev > > Subject: [PATCH v3 3/8] lpm: remove unnecessary NULL checks >=20 > The functions rte_lpm_free() and rte_lpm6_free() already handle NULL > pointer case. >=20 > Signed-off-by: Stephen Hemminger > --- > app/test/test_func_reentrancy.c | 3 +-- > lib/lpm/rte_lpm.h | 1 + > lib/lpm/rte_lpm6.h | 1 + > 3 files changed, 3 insertions(+), 2 deletions(-) >=20 Reviewed-by: Ruifeng Wang