Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 111359
b: refs/heads/master
c: 3c78708
h: refs/heads/master
i:
  111357: 8101bb9
  111355: d08e497
  111351: 8068839
  111343: bbdaa0f
  111327: 1e09b71
  111295: 635f6d3
  111231: 8ab8510
  111103: b9bf356
v: v3
  • Loading branch information
Ben Hutchings authored and Jeff Garzik committed Sep 3, 2008
1 parent 07341d8 commit c638e74
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8c8661e4cefdd1ddbfe7d5120f046694555d9e5c
refs/heads/master: 3c78708fe83d0fff994683e396e28ef259b7497b
5 changes: 1 addition & 4 deletions trunk/drivers/net/sfc/efx.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,7 @@ static void efx_fini_channels(struct efx_nic *efx);

#define EFX_ASSERT_RESET_SERIALISED(efx) \
do { \
if ((efx->state == STATE_RUNNING) || \
(efx->state == STATE_RESETTING)) \
if (efx->state == STATE_RUNNING) \
ASSERT_RTNL(); \
} while (0)

Expand Down Expand Up @@ -1615,7 +1614,6 @@ static int efx_reset(struct efx_nic *efx)
goto unlock_rtnl;
}

efx->state = STATE_RESETTING;
EFX_INFO(efx, "resetting (%d)\n", method);

efx_reset_down(efx, &ecmd);
Expand Down Expand Up @@ -1646,7 +1644,6 @@ static int efx_reset(struct efx_nic *efx)
goto disable;

EFX_LOG(efx, "reset complete\n");
efx->state = STATE_RUNNING;
unlock_rtnl:
rtnl_unlock();
return 0;
Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/net/sfc/net_driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -459,8 +459,7 @@ enum nic_state {
STATE_INIT = 0,
STATE_RUNNING = 1,
STATE_FINI = 2,
STATE_RESETTING = 3, /* rtnl_lock always held */
STATE_DISABLED = 4,
STATE_DISABLED = 3,
STATE_MAX,
};

Expand Down

0 comments on commit c638e74

Please sign in to comment.