aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/broadcom/tg3.c
diff options
context:
space:
mode:
authorNithin Sujir <nsujir@broadcom.com>2013-09-20 19:47:00 -0400
committerDavid S. Miller <davem@davemloft.net>2013-09-21 14:04:52 -0400
commit21e315e15dfc5b392998352e9c3492b8a58672c1 (patch)
tree838955ce15751f833ae3798d5eb7e04e7d4d59b6 /drivers/net/ethernet/broadcom/tg3.c
parent4bc814ab71951cab2dd745c08772ed2eb849a5f8 (diff)
tg3: Appropriately classify interrupts during request_irq
Distinguish between tx, rx and txrx interrupts. Signed-off-by: Nithin Nayak Sujir <nsujir@broadcom.com> Signed-off-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/tg3.c')
-rw-r--r--drivers/net/ethernet/broadcom/tg3.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/tg3.c b/drivers/net/ethernet/broadcom/tg3.c
index 00431bcefc41..6fd86457630a 100644
--- a/drivers/net/ethernet/broadcom/tg3.c
+++ b/drivers/net/ethernet/broadcom/tg3.c
@@ -11039,7 +11039,18 @@ static int tg3_request_irq(struct tg3 *tp, int irq_num)
11039 name = tp->dev->name; 11039 name = tp->dev->name;
11040 else { 11040 else {
11041 name = &tnapi->irq_lbl[0]; 11041 name = &tnapi->irq_lbl[0];
11042 snprintf(name, IFNAMSIZ, "%s-%d", tp->dev->name, irq_num); 11042 if (tnapi->tx_buffers && tnapi->rx_rcb)
11043 snprintf(name, IFNAMSIZ,
11044 "%s-txrx-%d", tp->dev->name, irq_num);
11045 else if (tnapi->tx_buffers)
11046 snprintf(name, IFNAMSIZ,
11047 "%s-tx-%d", tp->dev->name, irq_num);
11048 else if (tnapi->rx_rcb)
11049 snprintf(name, IFNAMSIZ,
11050 "%s-rx-%d", tp->dev->name, irq_num);
11051 else
11052 snprintf(name, IFNAMSIZ,
11053 "%s-%d", tp->dev->name, irq_num);
11043 name[IFNAMSIZ-1] = 0; 11054 name[IFNAMSIZ-1] = 0;
11044 } 11055 }
11045 11056