[Intel-wired-lan] [PATCH iwl-next v1 5/5] ice: refactor to use helpers

Przemek Kitszel przemyslaw.kitszel at intel.com
Wed Jun 5 04:01:03 UTC 2024


On 6/5/24 00:13, Jesse Brandeburg wrote:
> 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.
> 
> Reviewed-by: Jacob Keller <jacob.e.keller at intel.com>
> Signed-off-by: Jesse Brandeburg <jesse.brandeburg at intel.com>
> ---
>   drivers/net/ethernet/intel/ice/ice_ethtool.c  | 42 ++++++-------------
>   .../net/ethernet/intel/ice/ice_flex_pipe.c    |  8 +---
>   drivers/net/ethernet/intel/ice/ice_lag.c      |  5 +--
>   drivers/net/ethernet/intel/ice/ice_main.c     |  7 +---
>   drivers/net/ethernet/intel/ice/ice_sriov.c    |  3 +-
>   5 files changed, 19 insertions(+), 46 deletions(-)
> 

very nice, thanks
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel at intel.com>


More information about the Intel-wired-lan mailing list