1. 13 3月, 2018 1 次提交
  2. 12 3月, 2018 1 次提交
  3. 10 3月, 2018 3 次提交
    • R
      net sched actions: add new tc_action_ops callback · a03b91b1
      Roman Mashak 提交于
      Add a new callback in tc_action_ops, it will be needed by the tc actions
      to compute its size when a ADD/DELETE notification message is constructed.
      This routine has to take into account optional/variable size TLVs specific
      per action.
      Signed-off-by: NRoman Mashak <mrv@mojatatu.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a03b91b1
    • R
      net sched actions: update Add/Delete action API with new argument · d04e6990
      Roman Mashak 提交于
      Introduce a new function argument to carry total attributes size for
      correct allocation of skb in event messages.
      Signed-off-by: NRoman Mashak <mrv@mojatatu.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d04e6990
    • E
      net: do not create fallback tunnels for non-default namespaces · 79134e6c
      Eric Dumazet 提交于
      fallback tunnels (like tunl0, gre0, gretap0, erspan0, sit0,
      ip6tnl0, ip6gre0) are automatically created when the corresponding
      module is loaded.
      
      These tunnels are also automatically created when a new network
      namespace is created, at a great cost.
      
      In many cases, netns are used for isolation purposes, and these
      extra network devices are a waste of resources. We are using
      thousands of netns per host, and hit the netns creation/delete
      bottleneck a lot. (Many thanks to Kirill for recent work on this)
      
      Add a new sysctl so that we can opt-out from this automatic creation.
      
      Note that these tunnels are still created for the initial namespace,
      to be the least intrusive for typical setups.
      
      Tested:
      lpk43:~# cat add_del_unshare.sh
      for i in `seq 1 40`
      do
       (for j in `seq 1 100` ; do  unshare -n /bin/true >/dev/null ; done) &
      done
      wait
      
      lpk43:~# echo 0 >/proc/sys/net/core/fb_tunnels_only_for_init_net
      lpk43:~# time ./add_del_unshare.sh
      
      real	0m37.521s
      user	0m0.886s
      sys	7m7.084s
      lpk43:~# echo 1 >/proc/sys/net/core/fb_tunnels_only_for_init_net
      lpk43:~# time ./add_del_unshare.sh
      
      real	0m4.761s
      user	0m0.851s
      sys	1m8.343s
      lpk43:~#
      Signed-off-by: NEric Dumazet <edumazet@google.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      79134e6c
  4. 07 3月, 2018 2 次提交
  5. 06 3月, 2018 3 次提交
  6. 05 3月, 2018 6 次提交
  7. 02 3月, 2018 5 次提交
  8. 01 3月, 2018 6 次提交
  9. 28 2月, 2018 2 次提交
  10. 27 2月, 2018 1 次提交
  11. 24 2月, 2018 1 次提交
  12. 23 2月, 2018 3 次提交
  13. 22 2月, 2018 5 次提交
  14. 21 2月, 2018 1 次提交