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 49E6EA0350; Mon, 21 Feb 2022 16:52:02 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D5FC84068C; Mon, 21 Feb 2022 16:52:01 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 3F14D4013F for ; Mon, 21 Feb 2022 16:52:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645458720; x=1676994720; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=BiBGc2ZBnWfzSLVdTirLj3CgFST9Ihcu5WW/YGP89fo=; b=Od21jZt7dBbD6BNBruPigBt8ZBm0K3aB3tQtPf7CV+1Vb4pbii/Gaav7 Splb4ZAUR39oTSbgEnHPevzkB7uf2frr2Ak9ynds9uipdvypBPrqJLpfj 9DQRC7LxlaeV2AWftdXcEPj/91UQdnw7ZWGiSXi4fUeZBSHFb+24/1jWf pGnlkbW1aLa24KVs7ghUEebCZwIRIFxt9ikn45gcUYufsXBA47PFLSKHe kiWGgMzLOXhijDa9b8qVbfaEpnrQuSxQmcsFyORGB1QLiJdFBWg4qkS8R ZygUOcaOTw2MTZQKFr/L5GH5gm1Lz/z6P1o1ybbf/8KYUaVVlFzor6VLi A==; X-IronPort-AV: E=McAfee;i="6200,9189,10265"; a="232151195" X-IronPort-AV: E=Sophos;i="5.88,386,1635231600"; d="scan'208";a="232151195" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Feb 2022 07:51:59 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,386,1635231600"; d="scan'208";a="638591305" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by orsmga004.jf.intel.com with ESMTP; 21 Feb 2022 07:51:58 -0800 Received: from fmsmsx609.amr.corp.intel.com (10.18.126.89) 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; Mon, 21 Feb 2022 07:51:58 -0800 Received: from fmsmsx605.amr.corp.intel.com (10.18.126.85) 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; Mon, 21 Feb 2022 07:51:58 -0800 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx605.amr.corp.intel.com (10.18.126.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20 via Frontend Transport; Mon, 21 Feb 2022 07:51:58 -0800 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.171) 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; Mon, 21 Feb 2022 07:51:56 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=h6nSmO3mU2vGPVjfHJcsaLy+GcGJDOOT1m1V8KkmXaFhyIyqrkPzXD3RLHwm95DNt+GeLuP9ibS/klWwOAnjW/1EJVc/CaGEnzSukiTbBiGDwkyNFCTmZSIWZIN7KUTtdZMljioZu/OqTm9fjkR85zQYKWAybqfcYsBfWsOK8srK6FauXns4QXOXQrI31Dsv8v2EXMzn/ORfTAXUMZg6len7X5oxEGo/QLzyKzXZ72G1MD+rGunRM/RBACRlOldQP/k9OolwELWV4b4NUXNpsBC79OVEFx3gCyvY9mEh1NSaNk0Y3P6SiP9KtFoWFHwbLn8MvAm+n248wJAyLm/lkg== 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=0m0rFpJlnjht3GgrxeKVX/ddLQXXKvjDoNp6jOTQDq0=; b=THhqj6WcNCmOaXHqWGRbMbeepa+RzqZDsRPFoA/fiv2PX3VnHvWh2rkSq7AJaqGGyVGXwJFe+3ngwOOLIFmGazmOKh09I22Y4GC6VOuxbiNlT3d124qdH7s8P5cVgd++zaBsIGI21KvHOUbf97EZczPxBt0QW/P8m+0JT2bOpMjMMxyJrVlhm+Tginwc5Q8TV10x0nBvr1J8WyDZLS6K3ciiymLibzwZvNfU7MbOqnYydGOpPIZjBSbMytAIxkzB1AVAiy9WoXu7ebp0JkT7q743t09fBjVS49bt440Gzk1IFhQW5adzAx9bHOnFrbJLAzgALzFgwsHT9AaMh8zjCw== 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 Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from SJ0PR11MB5772.namprd11.prod.outlook.com (2603:10b6:a03:422::8) by SN6PR11MB3136.namprd11.prod.outlook.com (2603:10b6:805:da::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4995.25; Mon, 21 Feb 2022 15:51:45 +0000 Received: from SJ0PR11MB5772.namprd11.prod.outlook.com ([fe80::25b0:e7b7:e84a:e586]) by SJ0PR11MB5772.namprd11.prod.outlook.com ([fe80::25b0:e7b7:e84a:e586%3]) with mapi id 15.20.4995.027; Mon, 21 Feb 2022 15:51:45 +0000 Message-ID: <84b00f92-7a0c-b211-f937-4a0285785bea@intel.com> Date: Mon, 21 Feb 2022 15:51:37 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0 Thunderbird/91.6.0 Subject: Re: [PATCH v3 3/8] lpm: remove unnecessary NULL checks Content-Language: en-US To: Stephen Hemminger , CC: Bruce Richardson , Yipeng Wang , Sameh Gobriel , "Anatoly Burakov" , Olivier Matz , Andrew Rybchenko , Honnappa Nagarahalli , Konstantin Ananyev References: <20220219234322.61309-1-stephen@networkplumber.org> <20220220182147.9750-1-stephen@networkplumber.org> <20220220182147.9750-4-stephen@networkplumber.org> From: "Medvedkin, Vladimir" In-Reply-To: <20220220182147.9750-4-stephen@networkplumber.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO2P265CA0257.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:8a::29) To SJ0PR11MB5772.namprd11.prod.outlook.com (2603:10b6:a03:422::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 33d6fd4a-c8ee-4fbc-3879-08d9f5520fc2 X-MS-TrafficTypeDiagnostic: SN6PR11MB3136:EE_ X-LD-Processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ueKGB+JQWJhEKIqss5NAYqcb/um0Nv1fC7tBH3LRAJac4f+YDdWZ8Dd4ggBbartZtqbN1CCu68r6Suz8miLHUKi2JSmqZhh6ab9hzI/SccI4OXfWdUGWOlMYDIKfb4Y7czE9Wa2FkJmdgx1Z/LI+QSSuOoQHZEzfT4GkzKFRfKM4ZyCpUPLW8psYknrDey+dnwULp4JcwhAczc2c7gJc/eTNwi6Blv3B15/c4gsVtKHmcBbceq9ouW3E9pnrAtl4KT8rHd6tVerA9ZRZw6rUaxKkcLMwHeGE9nAMHr+ZdFjvWKQhcaqXg1Q25BSLltybmu0GX9PrNnL+AWygnAPeFG0KwSS90RwDLebarKl54N3S/l1V2Vk0EN8AsTyjSUssFhmnGxPSd2RlD/7QM5pwZO7tBOAJAGpbXo5syI90BEuB+TFJL/Yvy0/g4wsFgjJ0RPFGVOyepQlE79pTYsTqP5ynXGHjpc0ThrRQYPyD4D2qy3P3YyyKWKDpJnO0lYbfpqBi6nym7dyvFEUQax0ZCdraDM4XQkYRsoEpXwGzGwb/scy+mxDA52ji7Yz+Fv+VnXD/Udj9R0cbvSde5qsRoG6dpDs/jMkUqqzJFFmvzWTjy7Z35aCApQFQCw4dkRIzWMJnfHQ2w/vE2WMXwb+QNvGSkFMyDoKsdY/iCjUhcb368uczllHp9Li74EBKdYWIkiQhNtuKYAKywltxnWvl/ir1tA3sCMkbCck2lbjOsOLyA1TCe0Aj8uFft2wcfTcg X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR11MB5772.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(53546011)(186003)(66556008)(6512007)(66946007)(54906003)(6506007)(26005)(2616005)(107886003)(6486002)(31696002)(8676002)(508600001)(316002)(66476007)(86362001)(82960400001)(6666004)(83380400001)(4326008)(38100700002)(5660300002)(8936002)(31686004)(2906002)(36756003)(4744005)(45980500001)(43740500002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?YmtlOTNUdm5lUzJ4aU5seUpVa014S05FTGN0emVZT3hydWg1U3hLZzNNWkFJ?= =?utf-8?B?R0NnSzZBRG5XM1p4cDRCKy9aaloxRXhCMkhIalBVU215TzFSM1JCUTk5SnFB?= =?utf-8?B?c0JXemJuVVFEa0ZxVit0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sRjMx?= =?utf-8?B?S2IrQ0xHcjhnUFlQWnlKYkRZaU82aTgzbWt6WElnbUNIeW1vUDEvRTB5dEIz?= =?utf-8?B?KzdLYkdNcUtETDJ1eC9lSUFJZDNSeEZQbU5GYVpFMDhlSXpSYm1GelJVRHBZ?= =?utf-8?B?WjdjTi9nLzVuQ1F2bjRwbkNtM2VZZlpqTU5XcTR6bW5CY3FwQjdUcURvMFVB?= =?utf-8?B?cW5UWmkzU1FEZUh4cVlQVncyelc4ay9xK0hwdHdBUlRURkZQUEk1VFlSS0pL?= =?utf-8?B?eGtob0JIY25rSGsyNEtQcGRDaVNzRjV3YjlndElqVnFGTVBZUzZyQng1MUM2?= =?utf-8?Q?R3tzM/lcQF8VoxH5VzU6xsAwuhFEb1TAUKDC8zUQ54=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 33d6fd4a-c8ee-4fbc-3879-08d9f5520fc2 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR11MB5772.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Feb 2022 15:51:45.1864 (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: eYCbH7bmbOCOwxQXcRUW4PkWugU23hoAp87uTBNfHBNq5hUNE9VW8EhmJmBdr4XaQSm3k2fxaEgbP1rMaZR6QF0xBie3neSPYNr8l1zih6M= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR11MB3136 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 On 20/02/2022 18:21, Stephen Hemminger wrote: > The functions rte_lpm_free() and rte_lpm6_free() already > handle NULL pointer case. > > 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(-) > Acked-by: Vladimir Medvedkin -- Regards, Vladimir