1. 16 11月, 2010 2 次提交
  2. 19 8月, 2010 1 次提交
  3. 17 8月, 2010 1 次提交
  4. 28 7月, 2010 1 次提交
  5. 06 5月, 2010 1 次提交
  6. 04 4月, 2010 1 次提交
    • J
      net: convert multicast list to list_head · 22bedad3
      Jiri Pirko 提交于
      Converts the list and the core manipulating with it to be the same as uc_list.
      
      +uses two functions for adding/removing mc address (normal and "global"
       variant) instead of a function parameter.
      +removes dev_mcast.c completely.
      +exposes netdev_hw_addr_list_* macros along with __hw_addr_* functions for
       manipulation with lists on a sandbox (used in bonding and 80211 drivers)
      Signed-off-by: NJiri Pirko <jpirko@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      22bedad3
  7. 30 3月, 2010 1 次提交
    • T
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking... · 5a0e3ad6
      Tejun Heo 提交于
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
      
      percpu.h is included by sched.h and module.h and thus ends up being
      included when building most .c files.  percpu.h includes slab.h which
      in turn includes gfp.h making everything defined by the two files
      universally available and complicating inclusion dependencies.
      
      percpu.h -> slab.h dependency is about to be removed.  Prepare for
      this change by updating users of gfp and slab facilities include those
      headers directly instead of assuming availability.  As this conversion
      needs to touch large number of source files, the following script is
      used as the basis of conversion.
      
        http://userweb.kernel.org/~tj/misc/slabh-sweep.py
      
      The script does the followings.
      
      * Scan files for gfp and slab usages and update includes such that
        only the necessary includes are there.  ie. if only gfp is used,
        gfp.h, if slab is used, slab.h.
      
      * When the script inserts a new include, it looks at the include
        blocks and try to put the new include such that its order conforms
        to its surrounding.  It's put in the include block which contains
        core kernel includes, in the same order that the rest are ordered -
        alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
        doesn't seem to be any matching order.
      
      * If the script can't find a place to put a new include (mostly
        because the file doesn't have fitting include block), it prints out
        an error message indicating which .h file needs to be added to the
        file.
      
      The conversion was done in the following steps.
      
      1. The initial automatic conversion of all .c files updated slightly
         over 4000 files, deleting around 700 includes and adding ~480 gfp.h
         and ~3000 slab.h inclusions.  The script emitted errors for ~400
         files.
      
      2. Each error was manually checked.  Some didn't need the inclusion,
         some needed manual addition while adding it to implementation .h or
         embedding .c file was more appropriate for others.  This step added
         inclusions to around 150 files.
      
      3. The script was run again and the output was compared to the edits
         from #2 to make sure no file was left behind.
      
      4. Several build tests were done and a couple of problems were fixed.
         e.g. lib/decompress_*.c used malloc/free() wrappers around slab
         APIs requiring slab.h to be added manually.
      
      5. The script was run on all .h files but without automatically
         editing them as sprinkling gfp.h and slab.h inclusions around .h
         files could easily lead to inclusion dependency hell.  Most gfp.h
         inclusion directives were ignored as stuff from gfp.h was usually
         wildly available and often used in preprocessor macros.  Each
         slab.h inclusion directive was examined and added manually as
         necessary.
      
      6. percpu.h was updated not to include slab.h.
      
      7. Build test were done on the following configurations and failures
         were fixed.  CONFIG_GCOV_KERNEL was turned off for all tests (as my
         distributed build env didn't work with gcov compiles) and a few
         more options had to be turned off depending on archs to make things
         build (like ipr on powerpc/64 which failed due to missing writeq).
      
         * x86 and x86_64 UP and SMP allmodconfig and a custom test config.
         * powerpc and powerpc64 SMP allmodconfig
         * sparc and sparc64 SMP allmodconfig
         * ia64 SMP allmodconfig
         * s390 SMP allmodconfig
         * alpha SMP allmodconfig
         * um on x86_64 SMP allmodconfig
      
      8. percpu.h modifications were reverted so that it could be applied as
         a separate patch and serve as bisection point.
      
      Given the fact that I had only a couple of failures from tests on step
      6, I'm fairly confident about the coverage of this conversion patch.
      If there is a breakage, it's likely to be something in one of the arch
      headers which should be easily discoverable easily on most builds of
      the specific arch.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Guess-its-ok-by: NChristoph Lameter <cl@linux-foundation.org>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
      5a0e3ad6
  8. 11 2月, 2010 1 次提交
  9. 28 1月, 2010 1 次提交
  10. 29 12月, 2009 2 次提交
    • J
      mac80211: remove struct ieee80211_if_init_conf · 1ed32e4f
      Johannes Berg 提交于
      All its members (vif, mac_addr, type) are now available
      in the vif struct directly, so we can pass that instead
      of the conf struct. I generated this patch (except the
      mac80211 and header file changes) with this semantic
      patch:
      
      @@
      identifier conf, fn, hw;
      type tp;
      @@
      tp fn(struct ieee80211_hw *hw,
      -struct ieee80211_if_init_conf *conf)
      +struct ieee80211_vif *vif)
      {
      <...
      (
      -conf->type
      +vif->type
      |
      -conf->mac_addr
      +vif->addr
      |
      -conf->vif
      +vif
      )
      ...>
      }
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      1ed32e4f
    • J
      rtl8187: remove priv->mode · d30506e0
      John W. Linville 提交于
      It is checked in add_interface, but there it is easily replaced with
      a check of priv->vif.  If that information should become necessary,
      it is available in vif->type anyway.
      
      It is also checked in led_turn_on and led_turn_off, where I made the
      substitutions as described above.  Of course, these checks seem to
      have been incorrect since the driver was using NL80211_IFTYPE_MONITOR
      to indicate no interface rather than NL80211_IFTYPE_UNSPECIFIED.
      Anyway, I think these checks may be extraneous...?
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      d30506e0
  11. 08 12月, 2009 1 次提交
  12. 07 11月, 2009 1 次提交
  13. 29 8月, 2009 2 次提交
    • H
      rtl8187: Implement rfkill support · ca9152e3
      Herton Ronaldo Krzesinski 提交于
      This change implements rfkill support for RTL8187B and RTL8187L devices,
      using new cfg80211 rfkill API.
      Acked-by: NLarry Finger <Larry.Finger@lwfinger.net>
      Tested-by: NHin-Tak Leung <htl10@users.sourceforge.net>
      Signed-off-by: NHerton Ronaldo Krzesinski <herton@mandriva.com.br>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      ca9152e3
    • H
      rtl8187: fix circular locking (rtl8187_stop/rtl8187_work) · 6a8171f2
      Herton Ronaldo Krzesinski 提交于
      Larry Finger reports following lockdep warning:
      
      [ INFO: possible circular locking dependency detected ]
      2.6.31-rc6-wl #201
      -------------------------------------------------------
      rfkill/30578 is trying to acquire lock:
       (&(&priv->work)->work#2){+.+...}, at: [<ffffffff81051215>]
      __cancel_work_timer+0xd9/0x222
      
      but task is already holding lock:
       (&priv->conf_mutex#2){+.+.+.}, at: [<ffffffffa064a024>]
      rtl8187_stop+0x31/0x364 [rtl8187]
      
      which lock already depends on the new lock.
      
      the existing dependency chain (in reverse order) is:
      
      -> #1 (&priv->conf_mutex#2){+.+.+.}:
             [<ffffffff81065957>] __lock_acquire+0x12d0/0x1614
             [<ffffffff81065d54>] lock_acquire+0xb9/0xdd
             [<ffffffff8127c32f>] mutex_lock_nested+0x56/0x2a8
             [<ffffffffa064a392>] rtl8187_work+0x3b/0xf2 [rtl8187]
             [<ffffffff81050758>] worker_thread+0x1fa/0x30a
             [<ffffffff81054ca5>] kthread+0x8f/0x97
             [<ffffffff8100cb7a>] child_rip+0xa/0x20
             [<ffffffffffffffff>] 0xffffffffffffffff
      
      -> #0 (&(&priv->work)->work#2){+.+...}:
             [<ffffffff8106568c>] __lock_acquire+0x1005/0x1614
             [<ffffffff81065d54>] lock_acquire+0xb9/0xdd
             [<ffffffff8105124e>] __cancel_work_timer+0x112/0x222
             [<ffffffff8105136b>] cancel_delayed_work_sync+0xd/0xf
             [<ffffffffa064a33f>] rtl8187_stop+0x34c/0x364 [rtl8187]
             [<ffffffffa0242866>] ieee80211_stop_device+0x29/0x61 [mac80211]
             [<ffffffffa0239194>] ieee80211_stop+0x476/0x530 [mac80211]
             [<ffffffff8120ce15>] dev_close+0x8a/0xac
             [<ffffffffa01d9fa7>] cfg80211_rfkill_set_block+0x4a/0x7a [cfg80211]
             [<ffffffffa01bf4f0>] rfkill_set_block+0x84/0xd9 [rfkill]
             [<ffffffffa01bfc31>] rfkill_fop_write+0xda/0x124 [rfkill]
             [<ffffffff810cf286>] vfs_write+0xae/0x14a
             [<ffffffff810cf3e6>] sys_write+0x47/0x6e
             [<ffffffff8100ba6b>] system_call_fastpath+0x16/0x1b
             [<ffffffffffffffff>] 0xffffffffffffffff
      
      The problem here is that rtl8187_stop, while helding priv->conf_mutex,
      runs cancel_delayed_work_sync on an workqueue that runs rtl8187_work,
      which also takes priv->conf_mutex lock. Move cancel_delayed_work_sync
      out of rtl8187_stop priv->conf_mutex locking region.
      Reported-by: NLarry Finger <Larry.Finger@lwfinger.net>
      Tested-by: NLarry Finger <Larry.Finger@lwfinger.net>
      Signed-off-by: NHerton Ronaldo Krzesinski <herton@mandriva.com.br>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      6a8171f2
  14. 22 8月, 2009 1 次提交
  15. 20 8月, 2009 1 次提交
    • J
      mac80211: allow configure_filter callback to sleep · 3ac64bee
      Johannes Berg 提交于
      Over time, a whole bunch of drivers have come up
      with their own scheme to delay the configure_filter
      operation to a workqueue. To be able to simplify
      things, allow configure_filter to sleep, and add
      a new prepare_multicast callback that drivers that
      need the multicast address list implement. This new
      callback must be atomic, but most drivers either
      don't care or just calculate a hash which can be
      done atomically and then uploaded to the hardware
      non-atomically.
      
      A cursory look suggests that at76c50x-usb, ar9170,
      mwl8k (which is actually very broken now), rt2x00,
      wl1251, wl1271 and zd1211 should make use of this
      new capability.
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      3ac64bee
  16. 05 8月, 2009 1 次提交
    • L
      mac80211: redefine usage of the mac80211 workqueue · 42935eca
      Luis R. Rodriguez 提交于
      The mac80211 workqueue exists to enable mac80211 and drivers
      to queue their own work on a single threaded workqueue. mac80211
      takes care to flush the workqueue during suspend but we never
      really had requirements on drivers for how they should use
      the workqueue in consideration for suspend.
      
      We extend mac80211 to document how the mac80211 workqueue should
      be used, how it should not be used and finally move raw access to
      the workqueue to mac80211 only. Drivers and mac80211 use helpers
      to queue work onto the mac80211 workqueue:
      
        * ieee80211_queue_work()
        * ieee80211_queue_delayed_work()
      
      These helpers will now warn if mac80211 already completed its
      suspend cycle and someone is trying to queue work. mac80211
      flushes the mac80211 workqueue prior to suspend a few times,
      but we haven't taken the care to ensure drivers won't add more
      work after suspend. To help with this we add a warning when
      someone tries to add work and mac80211 already completed the
      suspend cycle.
      
      Drivers should ensure they cancel any work or delayed work
      in the mac80211 stop() callback.
      Signed-off-by: NLuis R. Rodriguez <lrodriguez@atheros.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      42935eca
  17. 11 7月, 2009 1 次提交
    • J
      mac80211: push rx status into skb->cb · f1d58c25
      Johannes Berg 提交于
      Within mac80211, we often need to copy the rx status into
      skb->cb. This is wasteful, as drivers could be building it
      in there to start with. This patch changes the API so that
      drivers are expected to pass the RX status in skb->cb, now
      accessible as IEEE80211_SKB_RXCB(skb). It also updates all
      drivers to pass the rx status in there, but only by making
      them memcpy() it into place before the call to the receive
      function (ieee80211_rx(_irqsafe)). Each driver can now be
      optimised on its own schedule.
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      f1d58c25
  18. 29 5月, 2009 1 次提交
  19. 28 5月, 2009 1 次提交
  20. 12 5月, 2009 1 次提交
  21. 07 5月, 2009 1 次提交
  22. 23 4月, 2009 2 次提交
  23. 24 2月, 2009 1 次提交
  24. 30 1月, 2009 3 次提交
  25. 24 1月, 2009 1 次提交
  26. 13 1月, 2009 1 次提交
  27. 20 12月, 2008 2 次提交
  28. 13 12月, 2008 2 次提交
  29. 05 12月, 2008 1 次提交
  30. 26 11月, 2008 3 次提交