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>
This commit is contained in:
Родитель
70340d728f
Коммит
cb13fc209f
|
@ -1207,6 +1207,7 @@ static int ixgbe_request_msix_irqs(struct ixgbe_adapter *adapter)
|
||||||
struct net_device *netdev = adapter->netdev;
|
struct net_device *netdev = adapter->netdev;
|
||||||
irqreturn_t (*handler)(int, void *);
|
irqreturn_t (*handler)(int, void *);
|
||||||
int i, vector, q_vectors, err;
|
int i, vector, q_vectors, err;
|
||||||
|
int ri=0, ti=0;
|
||||||
|
|
||||||
/* Decrement for Other and TCP Timer vectors */
|
/* Decrement for Other and TCP Timer vectors */
|
||||||
q_vectors = adapter->num_msix_vectors - NON_Q_VECTORS;
|
q_vectors = adapter->num_msix_vectors - NON_Q_VECTORS;
|
||||||
|
@ -1221,10 +1222,19 @@ static int ixgbe_request_msix_irqs(struct ixgbe_adapter *adapter)
|
||||||
&ixgbe_msix_clean_many)
|
&ixgbe_msix_clean_many)
|
||||||
for (vector = 0; vector < q_vectors; vector++) {
|
for (vector = 0; vector < q_vectors; vector++) {
|
||||||
handler = SET_HANDLER(&adapter->q_vector[vector]);
|
handler = SET_HANDLER(&adapter->q_vector[vector]);
|
||||||
sprintf(adapter->name[vector], "%s:v%d-%s",
|
|
||||||
netdev->name, vector,
|
if(handler == &ixgbe_msix_clean_rx) {
|
||||||
(handler == &ixgbe_msix_clean_rx) ? "Rx" :
|
sprintf(adapter->name[vector], "%s-%s-%d",
|
||||||
((handler == &ixgbe_msix_clean_tx) ? "Tx" : "TxRx"));
|
netdev->name, "rx", ri++);
|
||||||
|
}
|
||||||
|
else if(handler == &ixgbe_msix_clean_tx) {
|
||||||
|
sprintf(adapter->name[vector], "%s-%s-%d",
|
||||||
|
netdev->name, "tx", ti++);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
sprintf(adapter->name[vector], "%s-%s-%d",
|
||||||
|
netdev->name, "TxRx", vector);
|
||||||
|
|
||||||
err = request_irq(adapter->msix_entries[vector].vector,
|
err = request_irq(adapter->msix_entries[vector].vector,
|
||||||
handler, 0, adapter->name[vector],
|
handler, 0, adapter->name[vector],
|
||||||
&(adapter->q_vector[vector]));
|
&(adapter->q_vector[vector]));
|
||||||
|
|
Загрузка…
Ссылка в новой задаче