aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorBrice Goglin <brice@myri.com>2006-12-18 05:51:22 -0500
committerJeff Garzik <jeff@garzik.org>2006-12-26 16:28:20 -0500
commit3621cec5b5847348248e749c647219f409550f2f (patch)
treee418a97312d73fab082f26943a615ba59e9365b7 /drivers/net
parentdf30a740e4647b035e44a94e6977ad42a94cb850 (diff)
myri10ge: make msi configurable at runtime through sysfs
Now that IRQ are requested is called on open() and freed on close(), we can safely switch from/to MSI without unloading the module. We are guaranteed to correctly free IRQ even if the sysfs file got written in the meantime since the MSI initialization is stored in mgp->msi_enabled. Signed-off-by: Brice Goglin <brice@myri.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/myri10ge/myri10ge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/myri10ge/myri10ge.c b/drivers/net/myri10ge/myri10ge.c
index 53325ba0a6ae..1ce3c9e5c890 100644
--- a/drivers/net/myri10ge/myri10ge.c
+++ b/drivers/net/myri10ge/myri10ge.c
@@ -228,7 +228,7 @@ module_param(myri10ge_small_bytes, int, S_IRUGO | S_IWUSR);
228MODULE_PARM_DESC(myri10ge_small_bytes, "Threshold of small packets\n"); 228MODULE_PARM_DESC(myri10ge_small_bytes, "Threshold of small packets\n");
229 229
230static int myri10ge_msi = 1; /* enable msi by default */ 230static int myri10ge_msi = 1; /* enable msi by default */
231module_param(myri10ge_msi, int, S_IRUGO); 231module_param(myri10ge_msi, int, S_IRUGO | S_IWUSR);
232MODULE_PARM_DESC(myri10ge_msi, "Enable Message Signalled Interrupts\n"); 232MODULE_PARM_DESC(myri10ge_msi, "Enable Message Signalled Interrupts\n");
233 233
234static int myri10ge_intr_coal_delay = 25; 234static int myri10ge_intr_coal_delay = 25;