Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 189034
b: refs/heads/master
c: 4327ba4
h: refs/heads/master
v: v3
  • Loading branch information
Benjamin Li authored and David S. Miller committed Mar 24, 2010
1 parent b5766b6 commit c83d104
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 4881a4f89a95cc5fef6d32953954bcc3443eefd5
refs/heads/master: 4327ba435a56ada13eedf3eb332e583c7a0586a9
6 changes: 4 additions & 2 deletions trunk/drivers/net/bnx2.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@ static const struct flash_spec flash_5709 = {

MODULE_DEVICE_TABLE(pci, bnx2_pci_tbl);

static void bnx2_init_napi(struct bnx2 *bp);

static inline u32 bnx2_tx_avail(struct bnx2 *bp, struct bnx2_tx_ring_info *txr)
{
u32 diff;
Expand Down Expand Up @@ -6197,6 +6199,7 @@ bnx2_open(struct net_device *dev)
bnx2_disable_int(bp);

bnx2_setup_int_mode(bp, disable_msi);
bnx2_init_napi(bp);
bnx2_napi_enable(bp);
rc = bnx2_alloc_mem(bp);
if (rc)
Expand Down Expand Up @@ -8207,7 +8210,7 @@ bnx2_init_napi(struct bnx2 *bp)
{
int i;

for (i = 0; i < BNX2_MAX_MSIX_VEC; i++) {
for (i = 0; i < bp->irq_nvecs; i++) {
struct bnx2_napi *bnapi = &bp->bnx2_napi[i];
int (*poll)(struct napi_struct *, int);

Expand Down Expand Up @@ -8276,7 +8279,6 @@ bnx2_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
dev->ethtool_ops = &bnx2_ethtool_ops;

bp = netdev_priv(dev);
bnx2_init_napi(bp);

pci_set_drvdata(pdev, dev);

Expand Down

0 comments on commit c83d104

Please sign in to comment.