Skip to content

ice: cleanup Tx/Rx context functions

Jacob Keller intel-wired-lan 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ice: rename ice_write_* functions to ice_pack_ctx_*drivers/net/ethernet/intel/ice/ice_common.c+28 -280 replies
2/3ice: use GENMASK instead of BIT(n) - 1 in pack functionsdrivers/net/ethernet/intel/ice/ice_common.c+8 -361 reply
3/3ice: cleanup line splitting for context set functionsdrivers/net/ethernet/intel/ice/ice_common.c drivers/net/ethernet/intel/ice/ice_common.h+9 -130 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchPrzemek KitszelPucha Himasekhar Reddy
1/3R-b
2/3R-b T-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Intel-wired-lan] [PATCH iwl-next 0/3] ice: cleanup Tx/Rx context functions

The ice driver has a handful of functions used for packing Tx and Rx context data from the structured software layout to the bit-packed hardware layout.

The function names are uninformative, being named "ice_write_<size>". While they are static to the file, it is still not a good idea to use such broad names for specific functions.

In addition, the implementation of the functions use BIT() to generate bitmasks, while the kernel provides a more robust GENMASK() for this purpose.

This series cleans up these functions in preparation for the live migration driver series that will extend the functions and add inverse operations for unpacking the hardware data format into the software structure.

Jacob Keller (3):
ice: rename ice_write_* functions to ice_pack_ctx_*
ice: use GENMASK instead of BIT(n) - 1 in pack functions
ice: cleanup line splitting for context set functions

 drivers/net/ethernet/intel/ice/ice_common.c | 112 +++++++-------------
 drivers/net/ethernet/intel/ice/ice_common.h |  10 +-
 2 files changed, 45 insertions(+), 77 deletions(-)

base-commit: c47bd2f22b2f457920138cacd3a53a403fa5cf92

Signature · 1 line
2.41.0