From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4308BCAC58E for ; Sat, 13 Sep 2025 09:07:21 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id ED5D384349; Sat, 13 Sep 2025 09:07:20 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id A2rEeVpbghuM; Sat, 13 Sep 2025 09:07:17 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 9F2298433D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1757754437; bh=FYR9AWDyKd4E3eYaqduZ9w2ytQB/OCFF8kyCre52g24=; h=Date:From:To:Cc:References:In-Reply-To:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=wxZRZNe9tuFXRnlqdliYeMCkR8HPH8cvEDlkS4dom/eLzC8wp+RWHMDdGY16rqM0E KkT6o4aAK7sDGDKPmN3AZOvZ01SiPkmo7bwwJtZ7g91mnzMKUaSVPl5UiWOIH1oOwE ZTgtqTVfrzRO06x3lEbPL/36HMqP3+ojOHOdejSf4c9xz0AUVc+joyuL/bvEzh5DdJ hbHguHDPESutfg9LMm57n5VlYQlVlopVx5XFsxyGNGG3QeFGuPp3otsVpsEL6+ZZMI accZ7gfGRZkHu1TiSihA/6H3OWt9J+cYK7l9XlRF3VI5Ib5vk5XehuuGv1Egw94aIJ Ah21Rtz2rhWxQ== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp1.osuosl.org (Postfix) with ESMTP id 9F2298433D; Sat, 13 Sep 2025 09:07:17 +0000 (UTC) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by lists1.osuosl.org (Postfix) with ESMTP id AF57325B for ; Sat, 13 Sep 2025 09:07:16 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 959248433D for ; Sat, 13 Sep 2025 09:07:16 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id Yvhu4m5g8v_v for ; Sat, 13 Sep 2025 09:07:16 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.4.254; helo=tor.source.kernel.org; envelope-from=horms@kernel.org; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp1.osuosl.org 0857B8433C DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 0857B8433C Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by smtp1.osuosl.org (Postfix) with ESMTPS id 0857B8433C for ; Sat, 13 Sep 2025 09:07:15 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id 1C6E26021A; Sat, 13 Sep 2025 09:07:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A797AC4CEEB; Sat, 13 Sep 2025 09:07:12 +0000 (UTC) Date: Sat, 13 Sep 2025 10:07:10 +0100 From: Simon Horman To: Jacob Keller Cc: Jesse Brandeburg , Jakub Kicinski , Hariprasad Kelam , Marcin Szycik , Rahul Rameshbabu , netdev@vger.kernel.org, intel-wired-lan@lists.osuosl.org, linux-doc@vger.kernel.org, corbet@lwn.net, Jesse Brandeburg Message-ID: <20250913090710.GJ224143@horms.kernel.org> References: <20250911-resend-jbrandeb-ice-standard-stats-v3-0-1bcffd157aa5@intel.com> <20250911-resend-jbrandeb-ice-standard-stats-v3-5-1bcffd157aa5@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250911-resend-jbrandeb-ice-standard-stats-v3-5-1bcffd157aa5@intel.com> X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1757754434; bh=cb2Q1hU2BTJSMSERZdg9xxImCo1b0IDRVIFl13zEi7k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NSbkRV2HmBGKR0IvjNlWBMNvMj2ZwzM+axTyyVP0B1NhK/lPu29kleoUZYZ0kzHE6 iIBLvIEwW1BrD+itZRICi/qMl2r8xilMBWAge74VRMSj4izWj0p87oYKpn4rMlfUaM DWwYT1YW/7jKzKB805wqGN1AccB+foRDwD4JNeKfK2PaUxdNUHLHTdPZN6WOCs3OLY /AoWkr4njKga7pyCKxB/j32CHsiUjr0DmLygOuEsa6+h37sc8aMQHT35aW8QDKqEKz dMA5GDF82bnpzuTGiEDr7R11sFiFMwABTlL/Nq6UfaNM5QHGL7IOLq9DpyslmjYNOf SDmPuQPPsda1Q== X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=NSbkRV2H Subject: Re: [Intel-wired-lan] [PATCH v3 5/5] ice: refactor to use helpers X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-wired-lan-bounces@osuosl.org Sender: "Intel-wired-lan" On Thu, Sep 11, 2025 at 04:40:41PM -0700, Jacob Keller wrote: > From: Jesse Brandeburg > > Use the ice_netdev_to_pf() helper in more places and remove a bunch of > boilerplate code. Not every instance could be replaced due to use of the > netdev_priv() output or the vsi variable within a bunch of functions. > > Signed-off-by: Jesse Brandeburg > Signed-off-by: Jacob Keller > --- > drivers/net/ethernet/intel/ice/ice_ethtool.c | 48 ++++++++------------------ > drivers/net/ethernet/intel/ice/ice_flex_pipe.c | 8 ++--- > drivers/net/ethernet/intel/ice/ice_lag.c | 3 +- > drivers/net/ethernet/intel/ice/ice_main.c | 10 ++---- > drivers/net/ethernet/intel/ice/ice_ptp.c | 6 ++-- > drivers/net/ethernet/intel/ice/ice_sriov.c | 3 +- > 6 files changed, 24 insertions(+), 54 deletions(-) Less is more :) Reviewed-by: Simon Horman From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4F8FE2C0F75; Sat, 13 Sep 2025 09:07:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757754435; cv=none; b=dGlSm2c7TPlENppKf0XRJu961fJvc6WwEUr8ExXKo/X9E/ndPH41Ws62GHeL2JhqwAne5mw+HyEAaFJEaUgJaVeMqXIC0lyqf5gEUOTGT2ihM21mZEbzZJ5SyfhEj/maWezw9HOiureGScbOiqTqTiOYZ1F4oGbRk9kZw4JKBI4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757754435; c=relaxed/simple; bh=cb2Q1hU2BTJSMSERZdg9xxImCo1b0IDRVIFl13zEi7k=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=bgShBX8zzY5WEv9tNO/zLiUau1BcEITNZJSpVArtDPUWGEymSKcBc7V/1NGFKtp8t1VLBYgjfm3J+rvFU9faiTusWbKZMLJJu3b13EJGO4cTi/bBdYVZpmg/uyGRQdG7Ljp/GvReL5uaeSoAimmUJPhNI2TNPROZu5s7Aa23J2s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=NSbkRV2H; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="NSbkRV2H" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A797AC4CEEB; Sat, 13 Sep 2025 09:07:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1757754434; bh=cb2Q1hU2BTJSMSERZdg9xxImCo1b0IDRVIFl13zEi7k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NSbkRV2HmBGKR0IvjNlWBMNvMj2ZwzM+axTyyVP0B1NhK/lPu29kleoUZYZ0kzHE6 iIBLvIEwW1BrD+itZRICi/qMl2r8xilMBWAge74VRMSj4izWj0p87oYKpn4rMlfUaM DWwYT1YW/7jKzKB805wqGN1AccB+foRDwD4JNeKfK2PaUxdNUHLHTdPZN6WOCs3OLY /AoWkr4njKga7pyCKxB/j32CHsiUjr0DmLygOuEsa6+h37sc8aMQHT35aW8QDKqEKz dMA5GDF82bnpzuTGiEDr7R11sFiFMwABTlL/Nq6UfaNM5QHGL7IOLq9DpyslmjYNOf SDmPuQPPsda1Q== Date: Sat, 13 Sep 2025 10:07:10 +0100 From: Simon Horman To: Jacob Keller Cc: Jesse Brandeburg , Jakub Kicinski , Hariprasad Kelam , Marcin Szycik , Rahul Rameshbabu , netdev@vger.kernel.org, intel-wired-lan@lists.osuosl.org, linux-doc@vger.kernel.org, corbet@lwn.net, Jesse Brandeburg Subject: Re: [PATCH v3 5/5] ice: refactor to use helpers Message-ID: <20250913090710.GJ224143@horms.kernel.org> References: <20250911-resend-jbrandeb-ice-standard-stats-v3-0-1bcffd157aa5@intel.com> <20250911-resend-jbrandeb-ice-standard-stats-v3-5-1bcffd157aa5@intel.com> Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250911-resend-jbrandeb-ice-standard-stats-v3-5-1bcffd157aa5@intel.com> On Thu, Sep 11, 2025 at 04:40:41PM -0700, Jacob Keller wrote: > From: Jesse Brandeburg > > Use the ice_netdev_to_pf() helper in more places and remove a bunch of > boilerplate code. Not every instance could be replaced due to use of the > netdev_priv() output or the vsi variable within a bunch of functions. > > Signed-off-by: Jesse Brandeburg > Signed-off-by: Jacob Keller > --- > drivers/net/ethernet/intel/ice/ice_ethtool.c | 48 ++++++++------------------ > drivers/net/ethernet/intel/ice/ice_flex_pipe.c | 8 ++--- > drivers/net/ethernet/intel/ice/ice_lag.c | 3 +- > drivers/net/ethernet/intel/ice/ice_main.c | 10 ++---- > drivers/net/ethernet/intel/ice/ice_ptp.c | 6 ++-- > drivers/net/ethernet/intel/ice/ice_sriov.c | 3 +- > 6 files changed, 24 insertions(+), 54 deletions(-) Less is more :) Reviewed-by: Simon Horman