Skip to content

Commit a41c4d9

Browse files
committed
Merge branch '40GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/net-queue
Tony Nguyen says: ==================== Intel Wired LAN Driver Updates 2021-12-13 This series contains updates to iavf driver only. Dan Carpenter fixes some missing mutex unlocking. Stefan Assmann restores stopping watchdog from overriding to reset state. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
2 parents 166b6a4 + fe523d7 commit a41c4d9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/net/ethernet/intel/iavf/iavf_main.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2046,6 +2046,7 @@ static void iavf_watchdog_task(struct work_struct *work)
20462046
}
20472047
adapter->aq_required = 0;
20482048
adapter->current_op = VIRTCHNL_OP_UNKNOWN;
2049+
mutex_unlock(&adapter->crit_lock);
20492050
queue_delayed_work(iavf_wq,
20502051
&adapter->watchdog_task,
20512052
msecs_to_jiffies(10));
@@ -2076,16 +2077,14 @@ static void iavf_watchdog_task(struct work_struct *work)
20762077
iavf_detect_recover_hung(&adapter->vsi);
20772078
break;
20782079
case __IAVF_REMOVE:
2079-
mutex_unlock(&adapter->crit_lock);
2080-
return;
20812080
default:
2081+
mutex_unlock(&adapter->crit_lock);
20822082
return;
20832083
}
20842084

20852085
/* check for hw reset */
20862086
reg_val = rd32(hw, IAVF_VF_ARQLEN1) & IAVF_VF_ARQLEN1_ARQENABLE_MASK;
20872087
if (!reg_val) {
2088-
iavf_change_state(adapter, __IAVF_RESETTING);
20892088
adapter->flags |= IAVF_FLAG_RESET_PENDING;
20902089
adapter->aq_required = 0;
20912090
adapter->current_op = VIRTCHNL_OP_UNKNOWN;

0 commit comments

Comments
 (0)