Skip to contentSkip to conversation

iavf: Fix init and watchdog state machines

PATCH Superseded Mateusz Palczewski 1 participant 1 message Jun 18, 2021

Subsystems (2)

v3 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 3/3 iavf: Fix init and watchdog state machines

From: Jan Sokolowski <[email protected]>

Use single state machine for driver initialization and for service initialized driver. The init state machine implemented in init_task() is merged into the watchdog_task(). The init_task() function is removed.

Testing-Hints: Change is only for VF driver state machine,
should be checked load/unload/reset and set/get driver parameters.

Fixes bac8486116b0 ("iavf: Refactor the watchdog state machine")

---
v3: Added new file to patch series
v2: Splitted the patch into 2 to make them smaller

---
 drivers/net/ethernet/intel/iavf/iavf.h      |   1 -
 drivers/net/ethernet/intel/iavf/iavf_main.c | 133 +++++++++-----------
 2 files changed, 59 insertions(+), 75 deletions(-)
drivers/net/ethernet/intel/iavf/iavf.h +0 -1
index 468a2e1..6516c85 100644
@@ -233,7 +233,6 @@ struct iavf_adapter {
 	struct work_struct reset_task;
 	struct work_struct adminq_task;
 	struct delayed_work client_task;
-	struct delayed_work init_task;
 	wait_queue_head_t down_waitqueue;
 	struct iavf_q_vector *q_vectors;
 	struct list_head vlan_filter_list;
drivers/net/ethernet/intel/iavf/iavf_main.c +59 -74

207 lines not on this page · raw message

Signature · 1 line
2.27.0