Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 129797
b: refs/heads/master
c: 0ef0045
h: refs/heads/master
i:
  129795: 6993564
v: v3
  • Loading branch information
Eilon Greenstein authored and David S. Miller committed Jan 15, 2009
1 parent b1e3c5f commit fc2cc88
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 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: e7799c5f79072b5b34cf08170f142bcb8569cfff
refs/heads/master: 0ef00459a638ae4f5d1e5326d3e50232fa80119f
18 changes: 9 additions & 9 deletions trunk/drivers/net/bnx2x_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4812,6 +4812,15 @@ static void bnx2x_nic_init(struct bnx2x *bp, u32 load_code)
bnx2x_init_context(bp);
bnx2x_init_internal(bp, load_code);
bnx2x_init_ind_table(bp);
bnx2x_stats_init(bp);

/* At this point, we are ready for interrupts */
atomic_set(&bp->intr_sem, 0);

/* flush all before enabling interrupts */
mb();
mmiowb();

bnx2x_int_enable(bp);
}

Expand Down Expand Up @@ -6420,17 +6429,8 @@ static int bnx2x_nic_load(struct bnx2x *bp, int load_mode)
}
}

bnx2x_stats_init(bp);

bp->state = BNX2X_STATE_OPENING_WAIT4_PORT;

/* Enable Rx interrupt handling before sending the ramrod
as it's completed on Rx FP queue */
bnx2x_napi_enable(bp);

/* Enable interrupt handling */
atomic_set(&bp->intr_sem, 0);

rc = bnx2x_setup_leading(bp);
if (rc) {
BNX2X_ERR("Setup leading failed!\n");
Expand Down

0 comments on commit fc2cc88

Please sign in to comment.