Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5868256rwr; Tue, 9 May 2023 07:19:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7aGOJHm/0CsCbo1avWjkDXiMS2LPxwDMtP2mnBY9fNq4HdToLcZQLQWNtt8JIlJbFG+oRq X-Received: by 2002:a05:6a20:8f1f:b0:101:b080:e744 with SMTP id b31-20020a056a208f1f00b00101b080e744mr223543pzk.42.1683641965076; Tue, 09 May 2023 07:19:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683641965; cv=none; d=google.com; s=arc-20160816; b=HeyMOY560nFRgesfT7FrOcqDfbiOjuJpYoNqhw1j7/8SR0rX64neyHTrr2A1ZbfkJX lmuphi5PESUAHTO6o1qo0lmjCqpg/QRYGSFgib5IQMGiMerfNtehFSp2w7RfnOD0KsOa ne8qZ5zyzKCQOVynWpf2/iYgKICj999YGYKGdKCiWf3ZBQFlLtbiQpnpAV0g7+nVDERc jrgu6NocSBWi8K5PUh+LB4HqzZowJip6tN+DQghmgLErIv5YsXoG6WMdnUQzULdpsdns 3qojXHRKJ3udQLdwDAJam1wA66HzvI5K0Mty1hLVDH5HZjO16HyJpHKoIKcUYQUr+Mtm SGCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=W1akNT8qolkAa5sVL/RCtqjHQOflNUZBr9l7+x0XHfg=; b=V6/9yWmJYXKMMFdACqQe0mM6oODPP8ASQ6kzuW7ZY6X6xImiexdR+egsEy+HAcMNsQ ZIm5vCGwsPrdyDSfLazoqMcKhRBJcd2Lro7kzwzyj/mjVhJ5vgfz4fy76EhPWJo+Q5GU vvuja8xDLlOTSjdz3FqhqbBAbkPgC2vnsID0+i4h+Nsd7cPxb5LD6ejOMPgnFe5gejl3 yUxL0it/GDxeMBxEEX17qO2WVUdt2BY2yCl6chqjlv1Pf1zmELNqW6otQWP2SpU8tPlV zSD4uUHWf4E1nJAscv5/kGsCr9fHjqftRvMlryuQ72qkof6IObjpjfe7dPSMrpY2R97H JNeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lTj6WY0B; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e16-20020aa798d0000000b00593a808158esi2521380pfm.156.2023.05.09.07.19.08; Tue, 09 May 2023 07:19:25 -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=@kernel.org header.s=k20201202 header.b=lTj6WY0B; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235558AbjEINlb (ORCPT + 99 others); Tue, 9 May 2023 09:41:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229998AbjEINl3 (ORCPT ); Tue, 9 May 2023 09:41:29 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E6E9AF for ; Tue, 9 May 2023 06:41:29 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9E10E631EB for ; Tue, 9 May 2023 13:41:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 47F63C433EF; Tue, 9 May 2023 13:41:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683639687; bh=R7cToSUJhPLimXgiY5o29IKd+9R8oGu8VsdxVABf9ZI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lTj6WY0BXcDV9ys7JEOJjBBwIi9uXroTPcTCRQxpHBKrxwpyloSetG5EVBWinhcuM cnt5/jRHD1+ai3KhQ8BTeFLc4oEtCn9u09Q6Gp84Z/mrXefSAzArR6fBEJnwPPVp89 JXIu2A8aZur2TJn1fIr3WCxqU1Eaem/cjQ5u+Jdc8i8+cMBiLCxioPWEkkHgJ2M4pl fKQKVjmAsRihbL4ywFRojFtDKzuc4Ismv4QeuiHZ4lR1ZNgVR0eBNcRHQpArBu3JCb F9f2yoY8qNZqqkWXPYVi6Zz+ZLPAW+t1lx9wum47L5cnkMO7bVp29azsEc5Qjtok8L UgJKswNQl0EXA== Date: Tue, 9 May 2023 16:41:23 +0300 From: Leon Romanovsky To: Yunsheng Lin Cc: davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v1 2/2] net: remove __skb_frag_set_page() Message-ID: <20230509134123.GM38143@unreal> References: <20230509114337.21005-1-linyunsheng@huawei.com> <20230509114337.21005-3-linyunsheng@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230509114337.21005-3-linyunsheng@huawei.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Tue, May 09, 2023 at 07:43:37PM +0800, 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. > --- > drivers/net/ethernet/broadcom/bnx2.c | 1 - > drivers/net/ethernet/broadcom/bnxt/bnxt.c | 5 +---- > include/linux/skbuff.h | 12 ------------ > 3 files changed, 1 insertion(+), 17 deletions(-) > Thanks, Reviewed-by: Leon Romanovsky