1. 01 7月, 2011 2 次提交
  2. 28 6月, 2011 1 次提交
  3. 25 6月, 2011 1 次提交
  4. 23 6月, 2011 2 次提交
    • J
      nl80211: use netlink consistent dump feature for BSS dumps · 9720bb3a
      Johannes Berg 提交于
      Use the new consistent dump feature from (generic) netlink
      to advertise when dumps are incomplete.
      
      Readers may note that this does not initialize the
      rdev->bss_generation counter to a non-zero value. This is
      still OK since the value is modified only under spinlock
      when the list is modified. Since the dump code holds the
      spinlock, the value will either be > 0 already, or the
      list will still be empty in which case a consistent dump
      will actually be made (and be empty).
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      9720bb3a
    • J
      netlink: advertise incomplete dumps · 670dc283
      Johannes Berg 提交于
      Consider the following situation:
       * a dump that would show 8 entries, four in the first
         round, and four in the second
       * between the first and second rounds, 6 entries are
         removed
       * now the second round will not show any entry, and
         even if there is a sequence/generation counter the
         application will not know
      
      To solve this problem, add a new flag NLM_F_DUMP_INTR
      to the netlink header that indicates the dump wasn't
      consistent, this flag can also be set on the MSG_DONE
      message that terminates the dump, and as such above
      situation can be detected.
      
      To achieve this, add a sequence counter to the netlink
      callback struct. Of course, netlink code still needs
      to use this new functionality. The correct way to do
      that is to always set cb->seq when a dumpit callback
      is invoked and call nl_dump_check_consistent() for
      each new message. The core code will also call this
      function for the final MSG_DONE message.
      
      To make it usable with generic netlink, a new function
      genlmsg_nlhdr() is needed to obtain the netlink header
      from the genetlink user header.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      Acked-by: NDavid S. Miller <davem@davemloft.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      670dc283
  5. 22 6月, 2011 1 次提交
  6. 21 6月, 2011 3 次提交
  7. 18 6月, 2011 3 次提交
  8. 17 6月, 2011 4 次提交
  9. 16 6月, 2011 1 次提交
  10. 15 6月, 2011 3 次提交
  11. 14 6月, 2011 19 次提交