1. 23 8月, 2015 1 次提交
  2. 16 8月, 2015 1 次提交
  3. 04 8月, 2015 2 次提交
  4. 17 7月, 2015 1 次提交
    • J
      mac80211: don't store napi struct · af9f9b22
      Johannes Berg 提交于
      When introducing multiple RX queues, a single NAPI struct will not
      be sufficient. Instead of trying to store multiple, simply change
      the API to have the NAPI struct passed to the RX function. This of
      course means that drivers using rx_irqsafe() cannot use NAPI, but
      that seems a reasonable trade-off, particularly since only two of
      all drivers are currently using it at all.
      
      While at it, we can now remove the IEEE80211_RX_REORDER_TIMER flag
      again since this code path cannot have a napi struct anyway.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      af9f9b22
  5. 11 5月, 2014 1 次提交
  6. 13 2月, 2014 1 次提交
  7. 14 1月, 2014 1 次提交
  8. 01 1月, 2014 1 次提交
  9. 18 6月, 2013 2 次提交
  10. 27 5月, 2013 1 次提交
  11. 05 2月, 2013 1 次提交
    • J
      iwlwifi: use threaded interrupt handler · 2bfb5092
      Johannes Berg 提交于
      With new transports coming up, move to threaded
      interrupt handling now. This has the advantage
      that we can use the same locking scheme with all
      different transports we may need to implement.
      
      Note that the TX path obviously still runs in a
      tasklet, so some spin_lock() calls need to change
      to spin_lock_bh() calls to properly lock out the
      TX path.
      
      In my test on a Calpella platform this has no
      impact on throughput or latency.
      
      Also add lockdep annotations to avoid lockups due
      to catch sending synchronous commands or using
      locks that connect with them from the irq thread.
      Reviewed-by: NEmmanuel Grumbach <emmanuel.grumbach@intel.com>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      2bfb5092
  12. 24 1月, 2013 1 次提交
  13. 27 11月, 2012 1 次提交
  14. 14 11月, 2012 1 次提交
  15. 01 11月, 2012 1 次提交
    • E
      iwlwifi: handle RFKILL logic in the transport layer · f946b529
      Emmanuel Grumbach 提交于
      No HCMD can be sent while RFKILL is asserted. If a SYNC
      command is running while RFKILL is asserted the fw will
      silently discard it. This means that the driver needs to
      wake the process that sleeps on the CMD_SYNC.
      
      Since the RFKILL interrupt is handled in the transport layer
      and the code that sleeps in CMD_SYNC is also in the transport
      layer, all this logic can be handled there.
      This simplifies the work of the op_mode.
      
      So the transport layer will now return -ERFKILL when a CMD
      is sent and RFKILL is asserted. This will be the case even
      when the CMD is SYNC. The transport layer will return
      -ERFKILL straight away.
      Signed-off-by: NEmmanuel Grumbach <emmanuel.grumbach@intel.com>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      f946b529
  16. 05 9月, 2012 1 次提交
  17. 05 7月, 2012 1 次提交
  18. 11 6月, 2012 2 次提交
  19. 06 6月, 2012 3 次提交
  20. 19 5月, 2012 1 次提交
    • E
      iwlwifi: dont pull too much payload in skb head · 56138f50
      Eric Dumazet 提交于
      As iwlwifi use fat skbs, it should not pull too much data in skb->head,
      and particularly no tcp data payload, or splice() is slower, and TCP
      coalescing is disabled. Copying payload to userland also involves at
      least two copies (part from header, part from fragment)
      
      Each layer will pull its header from the fragment as needed.
      
      (on 64bit arches, skb_tailroom(skb) at this point is 192 bytes)
      
      With this patch applied, I have a major reduction of collapsed/pruned
      TCP packets, a nice increase of TCPRcvCoalesce counter, and overall
      better Internet User experience.
      
      Small packets are still using a fragless skb, so that page can be reused
      by the driver.
      Signed-off-by: NEric Dumazet <edumazet@google.com>
      Cc: Johannes Berg <johannes.berg@intel.com>
      Cc: Wey-Yi Guy <wey-yi.w.guy@intel.com>
      Reviewed-by: NJohannes Berg <johannes.berg@intel.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      56138f50
  21. 11 5月, 2012 1 次提交
    • J
      drivers/net: Convert compare_ether_addr to ether_addr_equal · 2e42e474
      Joe Perches 提交于
      Use the new bool function ether_addr_equal to add
      some clarity and reduce the likelihood for misuse
      of compare_ether_addr for sorting.
      
      Done via cocci script:
      
      $ cat compare_ether_addr.cocci
      @@
      expression a,b;
      @@
      -	!compare_ether_addr(a, b)
      +	ether_addr_equal(a, b)
      
      @@
      expression a,b;
      @@
      -	compare_ether_addr(a, b)
      +	!ether_addr_equal(a, b)
      
      @@
      expression a,b;
      @@
      -	!ether_addr_equal(a, b) == 0
      +	ether_addr_equal(a, b)
      
      @@
      expression a,b;
      @@
      -	!ether_addr_equal(a, b) != 0
      +	!ether_addr_equal(a, b)
      
      @@
      expression a,b;
      @@
      -	ether_addr_equal(a, b) == 0
      +	!ether_addr_equal(a, b)
      
      @@
      expression a,b;
      @@
      -	ether_addr_equal(a, b) != 0
      +	ether_addr_equal(a, b)
      
      @@
      expression a,b;
      @@
      -	!!ether_addr_equal(a, b)
      +	ether_addr_equal(a, b)
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2e42e474
  22. 09 5月, 2012 1 次提交
  23. 03 5月, 2012 1 次提交
    • E
      iwlwifi: fix skb truesize underestimation · ed90542b
      Eric Dumazet 提交于
      By default, iwlwifi uses order-1 pages (8 KB) to store incoming frames,
      but doesnt say so in skb->truesize.
      
      This makes very possible to exhaust kernel memory since these skb evade
      normal socket memory accounting.
      
      As struct ieee80211_hdr is going to be pulled before calling IP stack,
      there is no need to use dev_alloc_skb() to reserve NET_SKB_PAD bytes.
      alloc_skb() is ok in this driver, allowing more tailroom.
      
      Pull beginning of frame in skb header, in the hope we can reuse order-1
      pages in the driver immediately for small frames and reduce their
      truesize to the minimum (linear skbs)
      Signed-off-by: NEric Dumazet <eric.dumazet@gmail.com>
      Cc: Wey-Yi Guy <wey-yi.w.guy@intel.com>
      Cc: "John W. Linville" <linville@tuxdriver.com>
      Cc: Neal Cardwell <ncardwell@google.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      ed90542b
  24. 24 4月, 2012 3 次提交
  25. 18 4月, 2012 3 次提交
  26. 17 4月, 2012 1 次提交
  27. 13 4月, 2012 4 次提交
  28. 10 4月, 2012 1 次提交