Skip to content

Commit

Permalink
alx: add module parameter to enable msi-x support
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tobias Regnery authored and David S. Miller committed Sep 10, 2016
1 parent dc39a78 commit 0c58ee0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/net/ethernet/atheros/alx/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 0c58ee0

Please sign in to comment.