diff options
author | Michael Chan <mchan@broadcom.com> | 2008-12-16 20:27:45 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-16 20:27:45 -0800 |
commit | 4e1d0de95c55383f598516ebf82969260c18e4bd (patch) | |
tree | cf990d6d5f86cffc323e2d82883204b729296dbe /drivers/net/bnx2.c | |
parent | f40e0638237a2d3e2ce8bedf3af4b3c02cf6fff7 (diff) |
bnx2: Rename MSI-X vectors.
Change MSI-X vector names to "ethx-%d".
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: Benjamin Li <benli@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2.c')
-rw-r--r-- | drivers/net/bnx2.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c index 0e2218dadb3..6ba2fecd89f 100644 --- a/drivers/net/bnx2.c +++ b/drivers/net/bnx2.c @@ -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); @@ -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; } |