1. 14 Apr, 2015 34 commits
  2. 13 Apr, 2015 6 commits
    • David S. Miller's avatar
      Merge branch 'for-davem' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs · 6e8a9d91
      David S. Miller authored
      Al Viro says:
      
      ====================
      netdev-related stuff in vfs.git
      
      There are several commits sitting in vfs.git that probably ought to go in
      via net-next.git.  First of all, there's merge with vfs.git#iocb - that's
      Christoph's aio rework, which has triggered conflicts with the ->sendmsg()
      and ->recvmsg() patches a while ago.  It's not so much Christoph's stuff
      that ought to be in net-next, as (pretty simple) conflict resolution on merge.
      The next chunk is switch to {compat_,}import_iovec/import_single_range - new
      safer primitives for initializing iov_iter.  The primitives themselves come
      from vfs/git#iov_iter (and they are used quite a lot in vfs part of queue),
      conversion of net/socket.c syscalls belongs in net-next, IMO.  Next there's
      afs and rxrpc stuff from dhowells.  And then there's sanitizing kernel_sendmsg
      et.al.  + missing inlined helper for "how much data is left in msg->msg_iter" -
      this stuff is used in e.g.  cifs stuff, but it belongs in net-next.
      
      That pile is pullable from
      git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git for-davem
      
      I'll post the individual patches in there in followups; could you take a look
      and tell if everything in there is OK with you?
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      6e8a9d91
    • Eric Dumazet's avatar
      tcp/dccp: get rid of central timewait timer · 789f558c
      Eric Dumazet authored
      Using a timer wheel for timewait sockets was nice ~15 years ago when
      memory was expensive and machines had a single processor.
      
      This does not scale, code is ugly and source of huge latencies
      (Typically 30 ms have been seen, cpus spinning on death_lock spinlock.)
      
      We can afford to use an extra 64 bytes per timewait sock and spread
      timewait load to all cpus to have better behavior.
      
      Tested:
      
      On following test, /proc/sys/net/ipv4/tcp_tw_recycle is set to 1
      on the target (lpaa24)
      
      Before patch :
      
      lpaa23:~# ./super_netperf 200 -H lpaa24 -t TCP_CC -l 60 -- -p0,0
      419594
      
      lpaa23:~# ./super_netperf 200 -H lpaa24 -t TCP_CC -l 60 -- -p0,0
      437171
      
      While test is running, we can observe 25 or even 33 ms latencies.
      
      lpaa24:~# ping -c 1000 -i 0.02 -qn lpaa23
      ...
      1000 packets transmitted, 1000 received, 0% packet loss, time 20601ms
      rtt min/avg/max/mdev = 0.020/0.217/25.771/1.535 ms, pipe 2
      
      lpaa24:~# ping -c 1000 -i 0.02 -qn lpaa23
      ...
      1000 packets transmitted, 1000 received, 0% packet loss, time 20702ms
      rtt min/avg/max/mdev = 0.019/0.183/33.761/1.441 ms, pipe 2
      
      After patch :
      
      About 90% increase of throughput :
      
      lpaa23:~# ./super_netperf 200 -H lpaa24 -t TCP_CC -l 60 -- -p0,0
      810442
      
      lpaa23:~# ./super_netperf 200 -H lpaa24 -t TCP_CC -l 60 -- -p0,0
      800992
      
      And latencies are kept to minimal values during this load, even
      if network utilization is 90% higher :
      
      lpaa24:~# ping -c 1000 -i 0.02 -qn lpaa23
      ...
      1000 packets transmitted, 1000 received, 0% packet loss, time 19991ms
      rtt min/avg/max/mdev = 0.023/0.064/0.360/0.042 ms
      Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      789f558c
    • Richard Weinberger's avatar
      netfilter: Fix format string of nfnetlink_log proc file · 20a1d165
      Richard Weinberger authored
      The printed values are all of type unsigned integer, therefore use
      %u instead of %d. Otherwise an user can face negative values.
      Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
      Acked-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      20a1d165
    • Richard Weinberger's avatar
      netfilter: Fix format string of nfnetlink_queue proc file · 6b46f7b7
      Richard Weinberger authored
      The printed values are all of type unsigned integer, therefore use
      %u instead of %d. Otherwise an user can face negative values.
      
      Fixes:
      $ cat /proc/net/netfilter/nfnetlink_queue
          0  29508   278 2 65531     0 2004213241 -2129885586  1
          1 -27747     0 2 65531     0     0        0  1
          2 -27748     0 2 65531     0     0        0  1
      Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
      Acked-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      6b46f7b7
    • Richard Weinberger's avatar
      netfilter: Fix portid types · cc6bc448
      Richard Weinberger authored
      The netlink portid is an unsigned integer, use this type
      also in netfilter.
      Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
      Acked-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      cc6bc448
    • Richard Weinberger's avatar
      nfc: Fix portid type in urelease_work · 65bc4f93
      Richard Weinberger authored
      portid is an unsigned integer. Fix urelease_work to
      match all other portid user in the kernel.
      Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      65bc4f93