[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <512f27ac-0502-3edd-c5a5-b64e61712305@intel.com>
Date: Thu, 19 Oct 2023 22:37:17 +0200
From: Przemek Kitszel <przemyslaw.kitszel@...el.com>
To: Jacob Keller <jacob.e.keller@...el.com>, <netdev@...r.kernel.org>, "David
Miller" <davem@...emloft.net>, Jakub Kicinski <kuba@...nel.org>
CC: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@...el.com>, Paul Menzel
<pmenzel@...gen.mpg.de>
Subject: Re: [PATCH net-next 09/11] ice: cleanup ice_find_netlist_node
On 10/19/23 19:32, Jacob Keller wrote:
> The ice_find_netlist_node function was introduced in commit 8a3a565ff210
> ("ice: add admin commands to access cgu configuration"). Variations of this
> function were reviewed concurrently on both intel-wired-lan[1][2], and
> netdev [3][4]
>
> [1]: https://lore.kernel.org/intel-wired-lan/20230913204943.1051233-7-vadim.fedorenko@linux.dev/
> [2]: https://lore.kernel.org/intel-wired-lan/20230817000058.2433236-5-jacob.e.keller@intel.com/
> [3]: https://lore.kernel.org/netdev/20230918212814.435688-1-anthony.l.nguyen@intel.com/
> [4]: https://lore.kernel.org/netdev/20230913204943.1051233-7-vadim.fedorenko@linux.dev/
>
> The variant I posted had a few changes due to review feedback which were
> never incorporated into the DPLL series:
>
> * Replace the references to ancient and long removed ICE_SUCCESS and
> ICE_ERR_DOES_NOT_EXIST status codes in the function comment.
>
> * Return -ENOENT instead of -ENOTBLK, as a more common way to indicate that
> an entry doesn't exist.
>
> * Avoid the use of memset() and use simple static initialization for the
> cmd variable.
>
> * Use FIELD_PREP to assign the node_type_ctx.
>
> * Remove an unnecessary local variable to keep track of rec_node_handle,
> just pass the node_handle pointer directly into ice_aq_get_netlist_node.
>
> Signed-off-by: Jacob Keller <jacob.e.keller@...el.com>
> Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@...el.com> (A Contingent worker at Intel)
> Reviewed-by: Paul Menzel <pmenzel@...gen.mpg.de>
> ---
> drivers/net/ethernet/intel/ice/ice_common.c | 30 ++++++++++-----------
> 1 file changed, 15 insertions(+), 15 deletions(-)
>
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@...el.com>
Powered by blists - more mailing lists