1. 14 12月, 2017 12 次提交
  2. 12 12月, 2017 25 次提交
  3. 11 12月, 2017 3 次提交
    • C
      netlink: convert netlink tap spinlock to mutex · b1042d35
      Cong Wang 提交于
      Both netlink_add_tap() and netlink_remove_tap() are
      called in process context, no need to bother spinlock.
      
      Note, in fact, currently we always hold RTNL when calling
      these two functions, so we don't need any other lock at
      all, but keeping this lock doesn't harm anything.
      
      Cc: Daniel Borkmann <daniel@iogearbox.net>
      Signed-off-by: NCong Wang <xiyou.wangcong@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b1042d35
    • C
      netlink: make netlink tap per netns · 25e3f70f
      Cong Wang 提交于
      nlmon device is not supposed to capture netlink events from
      other netns, so instead of filtering events, we can simply
      make netlink tap itself per netns.
      
      Cc: Daniel Borkmann <daniel@iogearbox.net>
      Cc: Kevin Cernekee <cernekee@chromium.org>
      Signed-off-by: NCong Wang <xiyou.wangcong@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      25e3f70f
    • D
      Merge branch 'rhashtable-New-features-in-walk-and-bucket' · 9944a0f2
      David S. Miller 提交于
      Tom Herbert says:
      
      ====================
      rhashtable: New features in walk and bucket
      
      This patch contains some changes to related rhashtable:
      
      - Above allow rhashtable_walk_start to return void
      - Add a functon to peek at the next entry during a walk
      - Abstract out function to compute a has for a table
      - A library function to alloc a spinlocks bucket array
      - Call the above function for rhashtable locks allocation
      
      Tested: Exercised using various operations on an ILA xlat
      table.
      
      v2:
       - Apply feedback from Herbert. Don't change semantics of resize
         event reporting and -EAGAIN, just simplify API for callers that
         ignore those.
       - Add end_of_table in iter to reliably tell when the iterator has
         reached to the eno.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      9944a0f2