Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6532547rwr; Tue, 9 May 2023 17:10:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ61j8lYFCTzjjYREwrd+WldG5b6X+5FNSK6CyYXeF5gmYgEmNwZhEYUM3bBXcpZkL31Bu3S X-Received: by 2002:a17:90a:e545:b0:24e:2e86:5465 with SMTP id ei5-20020a17090ae54500b0024e2e865465mr15578045pjb.31.1683677439318; Tue, 09 May 2023 17:10:39 -0700 (PDT) Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m1-20020a17090ade0100b0025066f45e40si7463073pjv.22.2023.05.09.17.10.24; Tue, 09 May 2023 17:10:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Il6mUAwU; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235038AbjEIXt5 (ORCPT + 99 others); Tue, 9 May 2023 19:49:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235093AbjEIXtx (ORCPT ); Tue, 9 May 2023 19:49:53 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDDCC4EE8; Tue, 9 May 2023 16:49:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1683676193; x=1715212193; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=f3tOs5+BZel4qlTWm2j265Zk2GE8IHXHf8Qs9jBZyXY=; b=Il6mUAwUGDN324Y+DjAVIXSfiBDu4vEeun98LKoVMTaA33Fs3YuF1YpC PsD+M5CMsLejckp1b+3wz9SpmH+nBH1btFkR3X4NZUcY63u5HU3tkj/oz 1qwALQ8J/G1VuY2wm/lajY/XEdPs5O418dt2ofiaWLlRuKdMgRduKAY7q 8+hGS5hBGIwq1HKqT0fI8NQVEMC26bl5upcR9Lear5yyrj6JGM22xaJgd vXb9X6zAWIJ5rVKwLjtjske75OeJEBZg1NSr0pIucn4FCiK5TRELZ+fpb QOMbA9okprnMfkvuz0ncHYj73keIun37egZuui9BMgNQ1H2Gu2XFIkrvb A==; X-IronPort-AV: E=McAfee;i="6600,9927,10705"; a="348919397" X-IronPort-AV: E=Sophos;i="5.99,263,1677571200"; d="scan'208";a="348919397" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 May 2023 16:49:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10705"; a="788713665" X-IronPort-AV: E=Sophos;i="5.99,263,1677571200"; d="scan'208";a="788713665" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by FMSMGA003.fm.intel.com with ESMTP; 09 May 2023 16:49:52 -0700 Received: from orsmsx603.amr.corp.intel.com (10.22.229.16) 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.2507.23; Tue, 9 May 2023 16:49:51 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23 via Frontend Transport; Tue, 9 May 2023 16:49:51 -0700 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.174) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.23; Tue, 9 May 2023 16:49:51 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jnMxcrliJnZp5ru218bneSsSf/qf2hTXwwtKDKoNbDR4uG1dXAkuRvfAYuE1JAfFt+0d6NVinyr8V7yYDK9ecu6BgScss0dcyQon6yXigB1ZXSkN3a+ONejwyNevfWjvU0gDqjC0lbALiEPl8IdRAQf3HVcPznKyjXiNefLroKIg8rXHNg+feFkcgrH0CZuM/VTFy/nUf42qfyASwRxzjjSd4YbV5HhH0njLvQQZVDsPxns52ijbZz7jJ6abwPIN7z0n/AIkx4/CnWfdUElu5XN+Ss2pxFEfETRdwX/CuV2BUgWDQimvDmTVuI8oA0bqyyTyWWFQcPWErQmETpFJfA== 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=7Iu/i7DZXWbiytteUqjt91lixlM+WC7MLaCioOGO+rQ=; b=ZSLutFP261QNdG8SsWnP7avv05hBbyCuIY128PLkJw+tD9wlOiJRAbgy66SIvK9iphWFhDtzPyM4EbCKO+xhz90UIE1+lqX+Ljz3piQB+T1frATI8lCRLTa0iYcD5y5krj8M+oDn2jvPq2Mq7J61T3C99b15T3Cr0UwTy0JAPrlWDMDPvX0SHleRjHbJciXMThu1P1cTHH4QXaC/hygLzt7oRDjPV3U8M1Qkb4LKI6xQDcfkADbKQwfgMTPXgXUdV+kQgdtxWGshYeI+/m58MHOXL8a3ZQp4b+FIWH4L4DI/Mt+6neLBmgYXHq7U/1zcxlTARN8EputIwYUy6bfxSQ== 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 CO1PR11MB4914.namprd11.prod.outlook.com (2603:10b6:303:90::24) by PH7PR11MB7515.namprd11.prod.outlook.com (2603:10b6:510:278::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.33; Tue, 9 May 2023 23:49:48 +0000 Received: from CO1PR11MB4914.namprd11.prod.outlook.com ([fe80::57f1:e14c:754d:bb00]) by CO1PR11MB4914.namprd11.prod.outlook.com ([fe80::57f1:e14c:754d:bb00%4]) with mapi id 15.20.6387.018; Tue, 9 May 2023 23:49:48 +0000 Message-ID: <2345b39d-366d-cd37-1026-2663679b4bed@intel.com> Date: Tue, 9 May 2023 16:49:46 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0 Thunderbird/102.10.1 Subject: Re: [PATCH net-next v1 2/2] net: remove __skb_frag_set_page() Content-Language: en-US To: Yunsheng Lin , , , CC: , , Simon Horman References: <20230509114634.21079-1-linyunsheng@huawei.com> From: Jesse Brandeburg In-Reply-To: <20230509114634.21079-1-linyunsheng@huawei.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SJ0PR13CA0017.namprd13.prod.outlook.com (2603:10b6:a03:2c0::22) To CO1PR11MB4914.namprd11.prod.outlook.com (2603:10b6:303:90::24) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PR11MB4914:EE_|PH7PR11MB7515:EE_ X-MS-Office365-Filtering-Correlation-Id: b02e4c65-2aad-478d-a8df-08db50e812d0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aHxmWZjYMEE3eVOt5LGrH6iE6WzkaJAATUnvtHNSYoWVMgPLL2AR5iQknBqxEp/9jdXK1lUvwPxDEFaybAygPEQopmmdcGmuuARNBVgpug91NOafecTvbA8sL4W/RocAGVAnpTJWdvEOAajlcFGkaEIeDkXIF4ZBy9yLEK1jqjhyMMAHUzzO6hJk0SFDqldm9EbVx3UFBSQX5KqO3wMhpwKjYthD+k/ldFnAlv2ZTcjK/y83UNYUFRHphnm0Rv0NPfiV8kwSlCOqI704WAcVI7h6mJVzVAA9SyxRaguHMN0ci2NBb7A5OF5Wu5UwKhEi1dK59jpBZtv00n6qF6T1H/On0PZV4r0BIVnvnsdNsxL1cHpyRNcbfBwC0+sUyWzNnlLSh8q7R2WbxTVp+PQGHR0vMFAW8eQrgxboZSCQixfgYeOFpwPYMm5eDYkWqtaZDBBzQqaScRNKwTf3CoVISUwDs1nCe2iLeKbjqcdrHaV4u/BoUSvJLK7R1PxH6mizI/V6Kk4MXvgm8A7jdMiJ6YuqmsitvSYMp3zO/W41tLfd8UJZ85XnA9Cw0LvSsgvJmIbGXEqTxBOclkPpaGNEPOpnqhVs7t/pi1Vg+wkhMLWT9CwpT++WurHIut0WFZRWc6nFeJj7OEYszvD0ZLQvWQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO1PR11MB4914.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(39860400002)(376002)(396003)(136003)(366004)(346002)(451199021)(66556008)(31686004)(86362001)(478600001)(66476007)(41300700001)(66946007)(31696002)(36756003)(6486002)(316002)(4326008)(8936002)(8676002)(44832011)(38100700002)(82960400001)(5660300002)(2906002)(4744005)(186003)(26005)(6512007)(53546011)(6506007)(2616005)(43740500002)(45980500001);DIR:OUT;SFP:1102; X-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NzF1NFdDWmJOMW9T?= =?utf-8?B?RkpXeHo0RWo0eEVoWkt4WXVlVWtOYXF6ZFZZMU1ZVGkwVUJBODFMYnhjclpp?= =?utf-8?B?MU9WUC8xa0VRY1hLcVNNMHluc0Q3bmVHTXdFdk5MdlZ0SFBDNGptbGVIMUF5?= =?utf-8?B?NEJuOWhrcEF2NmE4RVFmWE0vYWtQQmdHZXhTVjI3U3VvQWhwK2xremEzeUQ0?= =?utf-8?B?QTdEb01IaWZ4U25zYk83ZFphbmVIOWhEcHZuaFFtdVZOcEFxL1lHVzBWbHox?= =?utf-8?B?aitpb2t2RFBkanRhQ2JRcHhLbWdSTEF2aHlFaVNHcjBFQjY4M3k3SW00VERm?= =?utf-8?B?U3FVek1TRTVWOENBN0luWnQxUENhNkEzaXYxanNrRXBPak0yRXR2cDNCWitt?= =?utf-8?B?K1E4cGZZN2NkY0w0V3lpWmpSSW5iRmd0TytVOGdvZ1JUNmhFMm9OcDBubE9w?= =?utf-8?B?NEE9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: b02e4c65-2aad-478d-a8df-08db50e812d0 X-MS-Exchange-CrossTenant-AuthSource: CO1PR11MB4914.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 May 2023 23:49:48.2755 (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: BN450nzJ9DQtWExjmJjAM8KdRjPiA22o4ndtx5kKQTlj+SuZgF1VGMFLwVlQq1WURxefxnSbNFyklNeiitPp1fbkI+o4/HRYqwFvzVo8vkM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR11MB7515 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/9/2023 4:46 AM, Yunsheng Lin wrote: > The remaining users calling __skb_frag_set_page() with > page being NULL seems to be doing defensive programming, > as shinfo->nr_frags is already decremented, so remove > them. > > Signed-off-by: Yunsheng Lin > --- > RFC: remove a local variable as pointed out by Simon. Makes sense. Reviewed-by: Jesse Brandeburg CC: Simon