Commit 85407885 authored by Matt Carlson's avatar Matt Carlson Committed by David S. Miller

[PATCH net-next] tg3: Set real_num_rx_queues for non-multiq devs

Commit 2ddaad39 entitled "tg3: Use
netif_set_real_num_{rx,tx}_queues()" added a new call to
netif_set_real_num_rx_queues in tg3_enable_msix().  This call also needs
to be added to the legacy path to correctly reflect the actual number of
rx queues.
Signed-off-by: default avatarMatt Carlson <mcarlson@broadcom.com>
Acked-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 42560ca0
...@@ -8906,6 +8906,7 @@ static void tg3_ints_init(struct tg3 *tp) ...@@ -8906,6 +8906,7 @@ static void tg3_ints_init(struct tg3 *tp)
tp->irq_cnt = 1; tp->irq_cnt = 1;
tp->napi[0].irq_vec = tp->pdev->irq; tp->napi[0].irq_vec = tp->pdev->irq;
netif_set_real_num_tx_queues(tp->dev, 1); netif_set_real_num_tx_queues(tp->dev, 1);
netif_set_real_num_rx_queues(tp->dev, 1);
} }
} }
......
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