Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122747
b: refs/heads/master
c: 4e1d0de
h: refs/heads/master
i:
  122745: 5138a85
  122743: 4bfbf85
v: v3
  • Loading branch information
Michael Chan authored and David S. Miller committed Dec 17, 2008
1 parent 9bf31cd commit fedd087
Show file tree
Hide file tree
Showing 3 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: f40e0638237a2d3e2ce8bedf3af4b3c02cf6fff7
refs/heads/master: 4e1d0de95c55383f598516ebf82969260c18e4bd
4 changes: 3 additions & 1 deletion trunk/drivers/net/bnx2.c
Original file line number Diff line number Diff line change
Expand Up @@ -5827,6 +5827,8 @@ bnx2_enable_msix(struct bnx2 *bp, int msix_vecs)
{
int i, rc;
struct msix_entry msix_ent[BNX2_MAX_MSIX_VEC];
struct net_device *dev = bp->dev;
const int len = sizeof(bp->irq_tbl[0].name);

bnx2_setup_msix_tbl(bp);
REG_WR(bp, BNX2_PCI_MSIX_CONTROL, BNX2_MAX_MSIX_HW_VEC - 1);
Expand All @@ -5837,7 +5839,7 @@ bnx2_enable_msix(struct bnx2 *bp, int msix_vecs)
msix_ent[i].entry = i;
msix_ent[i].vector = 0;

strcpy(bp->irq_tbl[i].name, bp->dev->name);
snprintf(bp->irq_tbl[i].name, len, "%s-%d", dev->name, i);
bp->irq_tbl[i].handler = bnx2_msi_1shot;
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/bnx2.h
Original file line number Diff line number Diff line change
Expand Up @@ -6627,7 +6627,7 @@ struct bnx2_irq {
irq_handler_t handler;
unsigned int vector;
u8 requested;
char name[16];
char name[IFNAMSIZ + 2];
};

struct bnx2_tx_ring_info {
Expand Down

0 comments on commit fedd087

Please sign in to comment.