1. 22 9月, 2018 38 次提交
  2. 21 9月, 2018 2 次提交
    • V
      net_sched: change tcf_del_walker() to take idrinfo->lock · ec3ed293
      Vlad Buslov 提交于
      Action API was changed to work with actions and action_idr in concurrency
      safe manner, however tcf_del_walker() still uses actions without taking a
      reference or idrinfo->lock first, and deletes them directly, disregarding
      possible concurrent delete.
      
      Change tcf_del_walker() to take idrinfo->lock while iterating over actions
      and use new tcf_idr_release_unsafe() to release them while holding the
      lock.
      
      And the blocking function fl_hw_destroy_tmplt() could be called when we
      put a filter chain, so defer it to a work queue.
      Signed-off-by: NVlad Buslov <vladbu@mellanox.com>
      [xiyou.wangcong@gmail.com: heavily modify the code and changelog]
      Signed-off-by: NCong Wang <xiyou.wangcong@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ec3ed293
    • D
      Merge branch 'net-wean-netfilter-from-fib_nh' · 947e326c
      David S. Miller 提交于
      David Ahern says:
      
      ====================
      net: wean netfilter from fib_nh
      
      Two netfilter modules reference fib_nh. In both cases the code is
      only checking if a nexthop in a fib_info uses a specific device.
      Both instances essentially duplicate code from __fib_validate_source,
      so move that code into a helper and flip the netfilter modules to
      use it.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      947e326c