140-tweak-TSQ-setting.patch 451 B

123456789101112131415
  1. --- a/net/mac80211/tx.c
  2. +++ b/net/mac80211/tx.c
  3. @@ -3791,6 +3791,12 @@ out:
  4. netdev_tx_t ieee80211_subif_start_xmit(struct sk_buff *skb,
  5. struct net_device *dev)
  6. {
  7. +#if defined(sk_pacing_shift) || LINUX_VERSION_IS_GEQ(4,15,0)
  8. + if (skb->sk && sk_fullsock(skb->sk) &&
  9. + skb->sk->sk_pacing_shift != 6)
  10. + skb->sk->sk_pacing_shift = 6;
  11. +#endif
  12. +
  13. if (unlikely(ieee80211_multicast_to_unicast(skb, dev))) {
  14. struct sk_buff_head queue;