diff options
author | Tobias Regnery <tobias.regnery@gmail.com> | 2016-09-09 13:19:55 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-10 06:51:22 +0300 |
commit | 0c58ee0bfa28ad06dbc2b6305b1b950f7c392cdf (patch) | |
tree | a8d80a8536cbc3f7a55f9adfcccd0a8199e28c79 /drivers/net/ethernet/atheros | |
parent | dc39a78b3c6113dcad5e0f52e3b9deba7ad2fa3d (diff) | |
download | linux-0c58ee0bfa28ad06dbc2b6305b1b950f7c392cdf.tar.xz |
alx: add module parameter to enable msi-x support
msi-x support is default disabled in the alx driver. In order to test msi-x
interrupts for regressions add a module parameter to the driver.
Signed-off-by: Tobias Regnery <tobias.regnery@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/atheros')
-rw-r--r-- | drivers/net/ethernet/atheros/alx/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/ethernet/atheros/alx/main.c b/drivers/net/ethernet/atheros/alx/main.c index a4f74d4a976c..9887cee434dd 100644 --- a/drivers/net/ethernet/atheros/alx/main.c +++ b/drivers/net/ethernet/atheros/alx/main.c @@ -51,6 +51,9 @@ const char alx_drv_name[] = "alx"; +static bool msix = false; +module_param(msix, bool, 0); +MODULE_PARM_DESC(msix, "Enable msi-x interrupt support"); static void alx_free_txbuf(struct alx_priv *alx, int entry) { @@ -1018,7 +1021,7 @@ static int __alx_open(struct alx_priv *alx, bool resume) { int err; - alx_init_intr(alx, false); + alx_init_intr(alx, msix); if (!resume) netif_carrier_off(alx->dev); |