aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ixgbe/ixgbe_main.c
diff options
context:
space:
mode:
authorRobert Olsson <robert.olsson@its.uu.se>2008-11-25 19:43:52 -0500
committerDavid S. Miller <davem@davemloft.net>2008-11-25 19:44:39 -0500
commitcb13fc209f5c9394713319323166f74b01759ead (patch)
tree08a2c4a098b38b51cf0ed8e4de0cf2054cae8d12 /drivers/net/ixgbe/ixgbe_main.c
parent70340d728f4f4cb49da00a11b10ded492260caa5 (diff)
ixgbe: Naming interrupt vectors
Signed-off-by: Robert Olsson <robert.olsson@its.uu.se> Acked-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ixgbe/ixgbe_main.c')
-rw-r--r--drivers/net/ixgbe/ixgbe_main.c18
1 files changed, 14 insertions, 4 deletions
diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c
index 667a6463193d..15d511cc2989 100644
--- a/drivers/net/ixgbe/ixgbe_main.c
+++ b/drivers/net/ixgbe/ixgbe_main.c
@@ -1207,6 +1207,7 @@ static int ixgbe_request_msix_irqs(struct ixgbe_adapter *adapter)
1207 struct net_device *netdev = adapter->netdev; 1207 struct net_device *netdev = adapter->netdev;
1208 irqreturn_t (*handler)(int, void *); 1208 irqreturn_t (*handler)(int, void *);
1209 int i, vector, q_vectors, err; 1209 int i, vector, q_vectors, err;
1210 int ri=0, ti=0;
1210 1211
1211 /* Decrement for Other and TCP Timer vectors */ 1212 /* Decrement for Other and TCP Timer vectors */
1212 q_vectors = adapter->num_msix_vectors - NON_Q_VECTORS; 1213 q_vectors = adapter->num_msix_vectors - NON_Q_VECTORS;
@@ -1221,10 +1222,19 @@ static int ixgbe_request_msix_irqs(struct ixgbe_adapter *adapter)
1221 &ixgbe_msix_clean_many) 1222 &ixgbe_msix_clean_many)
1222 for (vector = 0; vector < q_vectors; vector++) { 1223 for (vector = 0; vector < q_vectors; vector++) {
1223 handler = SET_HANDLER(&adapter->q_vector[vector]); 1224 handler = SET_HANDLER(&adapter->q_vector[vector]);
1224 sprintf(adapter->name[vector], "%s:v%d-%s", 1225
1225 netdev->name, vector, 1226 if(handler == &ixgbe_msix_clean_rx) {
1226 (handler == &ixgbe_msix_clean_rx) ? "Rx" : 1227 sprintf(adapter->name[vector], "%s-%s-%d",
1227 ((handler == &ixgbe_msix_clean_tx) ? "Tx" : "TxRx")); 1228 netdev->name, "rx", ri++);
1229 }
1230 else if(handler == &ixgbe_msix_clean_tx) {
1231 sprintf(adapter->name[vector], "%s-%s-%d",
1232 netdev->name, "tx", ti++);
1233 }
1234 else
1235 sprintf(adapter->name[vector], "%s-%s-%d",
1236 netdev->name, "TxRx", vector);
1237
1228 err = request_irq(adapter->msix_entries[vector].vector, 1238 err = request_irq(adapter->msix_entries[vector].vector,
1229 handler, 0, adapter->name[vector], 1239 handler, 0, adapter->name[vector],
1230 &(adapter->q_vector[vector])); 1240 &(adapter->q_vector[vector]));