Skip to content

ice: simplify PF nominal-state checking

Yury Norov intel-wired-lan lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ice: simplify ice_pf_state_is_nominal()drivers/net/ethernet/intel/ice/ice_lib.c+1 -74 replies
2/2ice: drop pf == NULL check in ice_pf_state_is_nominal()drivers/net/ethernet/intel/ice/ice_lib.c drivers/net/ethernet/intel/ice/ice_main.c+1 -46 replies

Reviews trailers per patch

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

PatchSergey TemerkhanovSimon HormanAleksandr LoktionovAlexander Nowlin
1/2R-b R-b R-b T-b
2/2R-b R-b R-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v1 thread

Cover letter [PATCH 0/2] ice: simplify PF nominal-state checking

Simplify ice_pf_state_is_nominal() by checking the relevant state bits directly with bitmap_empty(), instead of constructing a temporary bitmap on the stack.

Two of the three callers dereference the PF before calling the helper. Move the NULL check to the remaining caller so that ice_pf_state_is_nominal() becomes a one-liner.

Yury Norov (2):
ice: simplify ice_pf_state_is_nominal()
ice: drop pf == NULL check in ice_pf_state_is_nominal()

 drivers/net/ethernet/intel/ice/ice_lib.c  | 11 +----------
 drivers/net/ethernet/intel/ice/ice_main.c |  2 +-
 2 files changed, 2 insertions(+), 11 deletions(-)
Signature · 1 line
2.53.0