Skip to contentSkip to conversation

iavf: Fix init and watchdog state machines

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

Subsystems (2)

v5 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

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

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")

---
v5: Fixed the patch so that it applies on net-next tree
v4: Removed unnecessary line
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 09d3b90..05314b8 100644
@@ -231,7 +231,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.17.1