356-mac80211-set-NETIF_F_LLTX-when-using-intermediate-tx.patch 724 B

12345678910111213141516171819202122
  1. From: Felix Fietkau <[email protected]>
  2. Date: Sat, 16 Mar 2019 18:01:53 +0100
  3. Subject: [PATCH] mac80211: set NETIF_F_LLTX when using intermediate tx
  4. queues
  5. When using iTXQ, tx sequence number allocation and statistics are run at
  6. dequeue time. Because of that, it is safe to enable NETIF_F_LLTX, which
  7. allows tx handlers to run on multiple CPUs in parallel.
  8. Signed-off-by: Felix Fietkau <[email protected]>
  9. ---
  10. --- a/net/mac80211/iface.c
  11. +++ b/net/mac80211/iface.c
  12. @@ -1301,6 +1301,7 @@ static void ieee80211_if_setup(struct ne
  13. static void ieee80211_if_setup_no_queue(struct net_device *dev)
  14. {
  15. ieee80211_if_setup(dev);
  16. + dev->features |= NETIF_F_LLTX;
  17. #if LINUX_VERSION_IS_GEQ(4,3,0)
  18. dev->priv_flags |= IFF_NO_QUEUE;
  19. #else