better names for the gig/10gig classes

git-svn-id: https://irqbalance.googlecode.com/svn/trunk@17 46b42954-3823-0410-bd82-eb80b452c9b5
This commit is contained in:
arjanvandeven 2006-12-14 21:35:30 +00:00
parent f6b43a0021
commit 22ed4b56b4
2 changed files with 6 additions and 6 deletions

View file

@ -12,8 +12,8 @@ char *classes[] = {
"storage", "storage",
"timer", "timer",
"ethernet", "ethernet",
"rx", "gbit-ethernet",
"tx", "10gbit-ethernet",
0 0
}; };
@ -118,9 +118,9 @@ int find_class(struct interrupt *irq, char *moduletext)
if (strstr(moduletext, ethernet_modules[i])) { if (strstr(moduletext, ethernet_modules[i])) {
guess = IRQ_ETH; guess = IRQ_ETH;
if (strstr(moduletext, "-rx")) if (strstr(moduletext, "-rx"))
guess = IRQ_RXETH; guess = IRQ_GETH;
if (strstr(moduletext, "-tx")) if (strstr(moduletext, "-tx"))
guess = IRQ_TXETH; guess = IRQ_TGETH;
} }
if (guess == IRQ_OTHER && irq->number==0) if (guess == IRQ_OTHER && irq->number==0)

View file

@ -15,8 +15,8 @@
#define IRQ_SCSI 2 #define IRQ_SCSI 2
#define IRQ_TIMER 3 #define IRQ_TIMER 3
#define IRQ_ETH 4 #define IRQ_ETH 4
#define IRQ_RXETH 5 #define IRQ_GETH 5
#define IRQ_TXETH 6 #define IRQ_TGETH 6
struct package { struct package {