[Intel-wired-lan] [PATCH S58 01/13] ice: refactor interrupt moderation writes

Brelinski, TonyX tonyx.brelinski at intel.com
Thu Apr 8 19:54:22 UTC 2021


> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of
> Tony Nguyen
> Sent: Wednesday, March 31, 2021 2:17 PM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [PATCH S58 01/13] ice: refactor interrupt
> moderation writes
> 
> From: Jesse Brandeburg <jesse.brandeburg at intel.com>
> 
> Introduce several new helpers for writing ITR and GLINT_RATE registers, and
> refactor the code calling them.  This resulted in removal of several duplicate
> functions and rolled a bunch of simple code back into the calling routines.
> 
> In particular this removes some code that was doing both a store and a set in
> a helper function, which seems better done as separate tasks in the caller
> (and generally takes less lines of code even with a tiny bit of repetition).
> 
> Signed-off-by: Jesse Brandeburg <jesse.brandeburg at intel.com>
> Signed-off-by: Tony Nguyen <anthony.l.nguyen at intel.com>
> ---
>  drivers/net/ethernet/intel/ice/ice_base.c    |  22 +--
>  drivers/net/ethernet/intel/ice/ice_ethtool.c |  17 +-
>  drivers/net/ethernet/intel/ice/ice_lib.c     | 171 ++++++++++---------
>  drivers/net/ethernet/intel/ice/ice_lib.h     |   3 +-
>  drivers/net/ethernet/intel/ice/ice_xsk.c     |   3 -
>  5 files changed, 112 insertions(+), 104 deletions(-)

Tested-by: Tony Brelinski <tonyx.brelinski at intel.com> A Contingent Worker at Intel




More information about the Intel-wired-lan mailing list