Skip to content

Commit affa9df

Browse files
Carolyn Wybornydavem330
authored andcommitted
e1000e: Add check for reset flags before displaying reset message
Some parts need to execute resets during normal operation. This flag check ensures that those parts reset without needlessly alarming the user. Other unexpected resets by other parts will dump debug info and message the reset action to the user, as originally intended. Signed-off-by: Carolyn Wyborny <[email protected]> Acked-by: Bruce Allan <[email protected]> Tested-by: Emil Tantilov <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent ff10e13 commit affa9df

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

drivers/net/e1000e/netdev.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4882,8 +4882,11 @@ static void e1000_reset_task(struct work_struct *work)
48824882
struct e1000_adapter *adapter;
48834883
adapter = container_of(work, struct e1000_adapter, reset_task);
48844884

4885-
e1000e_dump(adapter);
4886-
e_err("Reset adapter\n");
4885+
if (!((adapter->flags & FLAG_RX_NEEDS_RESTART) &&
4886+
(adapter->flags & FLAG_RX_RESTART_NOW))) {
4887+
e1000e_dump(adapter);
4888+
e_err("Reset adapter\n");
4889+
}
48874890
e1000e_reinit_locked(adapter);
48884891
}
48894892

0 commit comments

Comments
 (0)