Intel-Wired-Lan Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-wired-lan] [PATCH iwl-next v4 0/3] ice: split ice_aq_wait_for_event() func into two
@ 2023-08-08 21:54 Przemek Kitszel
  2023-08-08 21:54 ` [Intel-wired-lan] [PATCH iwl-next v4 1/3] ice: ice_aq_check_events: fix off-by-one check when filling buffer Przemek Kitszel
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Przemek Kitszel @ 2023-08-08 21:54 UTC (permalink / raw)
  To: intel-wired-lan; +Cc: netdev, Tony Nguyen, Simon Horman, Przemek Kitszel

Mitigate race between registering on wait list and receiving
AQ Response from FW.

The first patch fixes bound check to be more inclusive;
the second one refactors code to make the third one smaller,
which is an actual fix for the race.

Thanks Simon Horman for pushing into split, it's easier to follow now.

v4: remove excessive newlines, thanks Tony for catching this up
v3: split into 3 commits

Przemek Kitszel (3):
  ice: ice_aq_check_events: fix off-by-one check when filling buffer
  ice: embed &ice_rq_event_info event into struct ice_aq_task
  ice: split ice_aq_wait_for_event() func into two

 drivers/net/ethernet/intel/ice/ice.h          | 21 +++-
 .../net/ethernet/intel/ice/ice_fw_update.c    | 45 +++++----
 drivers/net/ethernet/intel/ice/ice_main.c     | 99 ++++++++++---------
 3 files changed, 93 insertions(+), 72 deletions(-)


base-commit: b91d6ff19e94ec46cf6473e7d50ec11615e9ede6
-- 
2.40.1

_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan@osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-08-16  4:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-08 21:54 [Intel-wired-lan] [PATCH iwl-next v4 0/3] ice: split ice_aq_wait_for_event() func into two Przemek Kitszel
2023-08-08 21:54 ` [Intel-wired-lan] [PATCH iwl-next v4 1/3] ice: ice_aq_check_events: fix off-by-one check when filling buffer Przemek Kitszel
2023-08-16  4:52   ` Pucha, HimasekharX Reddy
2023-08-08 21:54 ` [Intel-wired-lan] [PATCH iwl-next v4 2/3] ice: embed &ice_rq_event_info event into struct ice_aq_task Przemek Kitszel
2023-08-16  4:54   ` Pucha, HimasekharX Reddy
2023-08-08 21:54 ` [Intel-wired-lan] [PATCH iwl-next v4 3/3] ice: split ice_aq_wait_for_event() func into two Przemek Kitszel
2023-08-16  4:59   ` Pucha, HimasekharX Reddy
2023-08-09 17:46 ` [Intel-wired-lan] [PATCH iwl-next v4 0/3] " Simon Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox