Commit 37187a01 authored by Tobias Regnery's avatar Tobias Regnery Committed by David S. Miller

alx: fix fallback to msi or legacy interrupts

If requesting msi-x interrupts fails we should fall back to msi or
legacy interrupts. However alx_realloc_ressources don't call
alx_init_intr, so we fail to set the right number of tx queues.
This results in watchdog timeouts and a nonfunctional adapter.

Fixes: d768319c ("alx: enable multiple tx queues")
Signed-off-by: default avatarTobias Regnery <tobias.regnery@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f1db5c10
...@@ -984,6 +984,7 @@ static int alx_realloc_resources(struct alx_priv *alx) ...@@ -984,6 +984,7 @@ static int alx_realloc_resources(struct alx_priv *alx)
alx_free_rings(alx); alx_free_rings(alx);
alx_free_napis(alx); alx_free_napis(alx);
alx_disable_advanced_intr(alx); alx_disable_advanced_intr(alx);
alx_init_intr(alx, false);
err = alx_alloc_napis(alx); err = alx_alloc_napis(alx);
if (err) if (err)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment