mac80211: allocate only one RX queue
authorJohannes Berg <johannes.berg@intel.com>
Sat, 9 Jul 2011 13:39:16 +0000 (15:39 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 11 Jul 2011 19:02:19 +0000 (15:02 -0400)
We don't have multiple RX queues, so there's no use
in allocating multiple, use alloc_netdev_mqs() to
allocate multiple TX but only one RX queue.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/iface.c

index dee30aea9ab31eba7021812894c35d495e28ab71..236d15841812e86b60c488c4fd45311fb3fca885 100644 (file)
@@ -1130,8 +1130,8 @@ int ieee80211_if_add(struct ieee80211_local *local, const char *name,
 
        ASSERT_RTNL();
 
-       ndev = alloc_netdev_mq(sizeof(*sdata) + local->hw.vif_data_size,
-                              name, ieee80211_if_setup, local->hw.queues);
+       ndev = alloc_netdev_mqs(sizeof(*sdata) + local->hw.vif_data_size,
+                               name, ieee80211_if_setup, local->hw.queues, 1);
        if (!ndev)
                return -ENOMEM;
        dev_net_set(ndev, wiphy_net(local->hw.wiphy));