Skip to content

Commit 070825b

Browse files
committed
igb: Kill CONFIG_NETDEVICES_MULTIQUEUE references, no longer exists.
Signed-off-by: David S. Miller <[email protected]>
1 parent 51ce7ec commit 070825b

File tree

2 files changed

+0
-53
lines changed

2 files changed

+0
-53
lines changed

drivers/net/igb/igb.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,9 +287,7 @@ struct igb_adapter {
287287
int bars;
288288
int need_ioport;
289289

290-
#ifdef CONFIG_NETDEVICES_MULTIQUEUE
291290
struct igb_ring *multi_tx_table[IGB_MAX_TX_QUEUES];
292-
#endif /* CONFIG_NETDEVICES_MULTIQUEUE */
293291
#ifdef CONFIG_IGB_LRO
294292
unsigned int lro_max_aggr;
295293
unsigned int lro_aggregated;

drivers/net/igb/igb_main.c

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -532,10 +532,8 @@ static void igb_set_interrupt_capability(struct igb_adapter *adapter)
532532
if (!pci_enable_msi(adapter->pdev))
533533
adapter->flags |= IGB_FLAG_HAS_MSI;
534534

535-
#ifdef CONFIG_NETDEVICES_MULTIQUEUE
536535
/* Notify the stack of the (possibly) reduced Tx Queue count. */
537536
adapter->netdev->egress_subqueue_count = adapter->num_tx_queues;
538-
#endif
539537
return;
540538
}
541539

@@ -824,10 +822,8 @@ void igb_down(struct igb_adapter *adapter)
824822
/* flush and sleep below */
825823

826824
netif_stop_queue(netdev);
827-
#ifdef CONFIG_NETDEVICES_MULTIQUEUE
828825
for (i = 0; i < adapter->num_tx_queues; i++)
829826
netif_stop_subqueue(netdev, i);
830-
#endif
831827

832828
/* disable transmits in the hardware */
833829
tctl = rd32(E1000_TCTL);
@@ -1042,11 +1038,7 @@ static int __devinit igb_probe(struct pci_dev *pdev,
10421038
pci_save_state(pdev);
10431039

10441040
err = -ENOMEM;
1045-
#ifdef CONFIG_NETDEVICES_MULTIQUEUE
10461041
netdev = alloc_etherdev_mq(sizeof(struct igb_adapter), IGB_MAX_TX_QUEUES);
1047-
#else
1048-
netdev = alloc_etherdev(sizeof(struct igb_adapter));
1049-
#endif /* CONFIG_NETDEVICES_MULTIQUEUE */
10501042
if (!netdev)
10511043
goto err_alloc_etherdev;
10521044

@@ -1163,9 +1155,7 @@ static int __devinit igb_probe(struct pci_dev *pdev,
11631155
if (pci_using_dac)
11641156
netdev->features |= NETIF_F_HIGHDMA;
11651157

1166-
#ifdef CONFIG_NETDEVICES_MULTIQUEUE
11671158
netdev->features |= NETIF_F_MULTI_QUEUE;
1168-
#endif
11691159

11701160
netdev->features |= NETIF_F_LLTX;
11711161
adapter->en_mng_pt = igb_enable_mng_pass_thru(&adapter->hw);
@@ -1279,10 +1269,8 @@ static int __devinit igb_probe(struct pci_dev *pdev,
12791269
/* tell the stack to leave us alone until igb_open() is called */
12801270
netif_carrier_off(netdev);
12811271
netif_stop_queue(netdev);
1282-
#ifdef CONFIG_NETDEVICES_MULTIQUEUE
12831272
for (i = 0; i < adapter->num_tx_queues; i++)
12841273
netif_stop_subqueue(netdev, i);
1285-
#endif
12861274

12871275
strcpy(netdev->name, "eth%d");
12881276
err = register_netdev(netdev);
@@ -1432,11 +1420,7 @@ static int __devinit igb_sw_init(struct igb_adapter *adapter)
14321420
/* Number of supported queues. */
14331421
/* Having more queues than CPUs doesn't make sense. */
14341422
adapter->num_rx_queues = min((u32)IGB_MAX_RX_QUEUES, (u32)num_online_cpus());
1435-
#ifdef CONFIG_NETDEVICES_MULTIQUEUE
14361423
adapter->num_tx_queues = min(IGB_MAX_TX_QUEUES, num_online_cpus());
1437-
#else
1438-
adapter->num_tx_queues = 1;
1439-
#endif /* CONFIG_NET_MULTI_QUEUE_DEVICE */
14401424

14411425
/* This call may decrease the number of queues depending on
14421426
* interrupt mode. */
@@ -1619,9 +1603,7 @@ int igb_setup_tx_resources(struct igb_adapter *adapter,
16191603
static int igb_setup_all_tx_resources(struct igb_adapter *adapter)
16201604
{
16211605
int i, err = 0;
1622-
#ifdef CONFIG_NETDEVICES_MULTIQUEUE
16231606
int r_idx;
1624-
#endif
16251607

16261608
for (i = 0; i < adapter->num_tx_queues; i++) {
16271609
err = igb_setup_tx_resources(adapter, &adapter->tx_ring[i]);
@@ -1634,12 +1616,10 @@ static int igb_setup_all_tx_resources(struct igb_adapter *adapter)
16341616
}
16351617
}
16361618

1637-
#ifdef CONFIG_NETDEVICES_MULTIQUEUE
16381619
for (i = 0; i < IGB_MAX_TX_QUEUES; i++) {
16391620
r_idx = i % adapter->num_tx_queues;
16401621
adapter->multi_tx_table[i] = &adapter->tx_ring[r_idx];
16411622
}
1642-
#endif
16431623
return err;
16441624
}
16451625

@@ -2337,9 +2317,7 @@ static void igb_watchdog_task(struct work_struct *work)
23372317
struct e1000_mac_info *mac = &adapter->hw.mac;
23382318
u32 link;
23392319
s32 ret_val;
2340-
#ifdef CONFIG_NETDEVICES_MULTIQUEUE
23412320
int i;
2342-
#endif
23432321

23442322
if ((netif_carrier_ok(netdev)) &&
23452323
(rd32(E1000_STATUS) & E1000_STATUS_LU))
@@ -2396,10 +2374,8 @@ static void igb_watchdog_task(struct work_struct *work)
23962374

23972375
netif_carrier_on(netdev);
23982376
netif_wake_queue(netdev);
2399-
#ifdef CONFIG_NETDEVICES_MULTIQUEUE
24002377
for (i = 0; i < adapter->num_tx_queues; i++)
24012378
netif_wake_subqueue(netdev, i);
2402-
#endif
24032379

24042380
if (!test_bit(__IGB_DOWN, &adapter->state))
24052381
mod_timer(&adapter->phy_info_timer,
@@ -2412,10 +2388,8 @@ static void igb_watchdog_task(struct work_struct *work)
24122388
dev_info(&adapter->pdev->dev, "NIC Link is Down\n");
24132389
netif_carrier_off(netdev);
24142390
netif_stop_queue(netdev);
2415-
#ifdef CONFIG_NETDEVICES_MULTIQUEUE
24162391
for (i = 0; i < adapter->num_tx_queues; i++)
24172392
netif_stop_subqueue(netdev, i);
2418-
#endif
24192393
if (!test_bit(__IGB_DOWN, &adapter->state))
24202394
mod_timer(&adapter->phy_info_timer,
24212395
round_jiffies(jiffies + 2 * HZ));
@@ -2943,11 +2917,7 @@ static int __igb_maybe_stop_tx(struct net_device *netdev,
29432917
{
29442918
struct igb_adapter *adapter = netdev_priv(netdev);
29452919

2946-
#ifdef CONFIG_NETDEVICES_MULTIQUEUE
29472920
netif_stop_subqueue(netdev, tx_ring->queue_index);
2948-
#else
2949-
netif_stop_queue(netdev);
2950-
#endif
29512921

29522922
/* Herbert's original patch had:
29532923
* smp_mb__after_netif_stop_queue();
@@ -2960,11 +2930,7 @@ static int __igb_maybe_stop_tx(struct net_device *netdev,
29602930
return -EBUSY;
29612931

29622932
/* A reprieve! */
2963-
#ifdef CONFIG_NETDEVICES_MULTIQUEUE
29642933
netif_wake_subqueue(netdev, tx_ring->queue_index);
2965-
#else
2966-
netif_wake_queue(netdev);
2967-
#endif
29682934
++adapter->restart_queue;
29692935
return 0;
29702936
}
@@ -3051,14 +3017,9 @@ static int igb_xmit_frame_adv(struct sk_buff *skb, struct net_device *netdev)
30513017
struct igb_adapter *adapter = netdev_priv(netdev);
30523018
struct igb_ring *tx_ring;
30533019

3054-
#ifdef CONFIG_NETDEVICES_MULTIQUEUE
30553020
int r_idx = 0;
30563021
r_idx = skb->queue_mapping & (IGB_MAX_TX_QUEUES - 1);
30573022
tx_ring = adapter->multi_tx_table[r_idx];
3058-
#else
3059-
tx_ring = &adapter->tx_ring[0];
3060-
#endif
3061-
30623023

30633024
/* This goes back to the question of how to logically map a tx queue
30643025
* to a flow. Right now, performance is impacted slightly negatively
@@ -3745,19 +3706,11 @@ static bool igb_clean_tx_irq(struct igb_ring *tx_ring)
37453706
* sees the new next_to_clean.
37463707
*/
37473708
smp_mb();
3748-
#ifdef CONFIG_NETDEVICES_MULTIQUEUE
37493709
if (__netif_subqueue_stopped(netdev, tx_ring->queue_index) &&
37503710
!(test_bit(__IGB_DOWN, &adapter->state))) {
37513711
netif_wake_subqueue(netdev, tx_ring->queue_index);
37523712
++adapter->restart_queue;
37533713
}
3754-
#else
3755-
if (netif_queue_stopped(netdev) &&
3756-
!(test_bit(__IGB_DOWN, &adapter->state))) {
3757-
netif_wake_queue(netdev);
3758-
++adapter->restart_queue;
3759-
}
3760-
#endif
37613714
}
37623715

37633716
if (tx_ring->detect_tx_hung) {
@@ -3793,11 +3746,7 @@ static bool igb_clean_tx_irq(struct igb_ring *tx_ring)
37933746
tx_ring->buffer_info[i].time_stamp,
37943747
jiffies,
37953748
tx_desc->upper.fields.status);
3796-
#ifdef CONFIG_NETDEVICES_MULTIQUEUE
37973749
netif_stop_subqueue(netdev, tx_ring->queue_index);
3798-
#else
3799-
netif_stop_queue(netdev);
3800-
#endif
38013750
}
38023751
}
38033752
tx_ring->total_bytes += total_bytes;

0 commit comments

Comments
 (0)