amd-xgbe: Allow for a greater number of Rx queues
authorLendacky, Thomas <Thomas.Lendacky@amd.com>
Thu, 10 Nov 2016 23:10:05 +0000 (17:10 -0600)
committerDavid S. Miller <davem@davemloft.net>
Sun, 13 Nov 2016 05:56:26 +0000 (00:56 -0500)
Remove the call to netif_get_num_default_rss_queues() and replace it
with num_online_cpus() to allow for the possibility of using all of
the hardware DMA channels available.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/xgbe/xgbe-main.c

index 697483a61b16670f1ec10e78f08164683e2e85a3..7655753e182528caadbca81d2bf5f853d2661722 100644 (file)
@@ -236,8 +236,7 @@ void xgbe_set_counts(struct xgbe_prv_data *pdata)
 
        pdata->tx_q_count = pdata->tx_ring_count;
 
-       pdata->rx_ring_count = min_t(unsigned int,
-                                    netif_get_num_default_rss_queues(),
+       pdata->rx_ring_count = min_t(unsigned int, num_online_cpus(),
                                     pdata->hw_feat.rx_ch_cnt);
        pdata->rx_ring_count = min_t(unsigned int, pdata->rx_ring_count,
                                     pdata->rx_max_channel_count);