1. 20 9月, 2017 3 次提交
  2. 19 9月, 2017 1 次提交
  3. 02 9月, 2017 1 次提交
  4. 30 8月, 2017 1 次提交
  5. 16 8月, 2017 1 次提交
  6. 11 8月, 2017 1 次提交
  7. 04 8月, 2017 1 次提交
    • W
      test: add msg_zerocopy test · 07b65c5b
      Willem de Bruijn 提交于
      Introduce regression test for msg_zerocopy feature. Send traffic from
      one process to another with and without zerocopy.
      
      Evaluate tcp, udp, raw and packet sockets, including variants
      - udp: corking and corking with mixed copy/zerocopy calls
      - raw: with and without hdrincl
      - packet: at both raw and dgram level
      
      Test on both ipv4 and ipv6, optionally with ethtool changes to
      disable scatter-gather, tx checksum or tso offload. All of these
      can affect zerocopy behavior.
      
      The regression test can be run on a single machine if over a veth
      pair. Then skb_orphan_frags_rx must be modified to be identical to
      skb_orphan_frags to allow forwarding zerocopy locally.
      
      The msg_zerocopy.sh script will setup the veth pair in network
      namespaces and run all tests.
      Signed-off-by: NWillem de Bruijn <willemb@google.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      07b65c5b
  8. 24 6月, 2017 1 次提交
  9. 25 4月, 2017 3 次提交
  10. 21 4月, 2017 1 次提交
    • M
      selftests/net: Fixes psock_fanout CBPF test case · c1f8d0f9
      Mike Maloney 提交于
      'psock_fanout' has been failing since commit 4d7b9dc1 ("tools:
      psock_lib: harden socket filter used by psock tests").  That commit
      changed the CBPF filter to examine the full ethernet frame, and was
      tested on 'psock_tpacket' which uses SOCK_RAW.  But 'psock_fanout' was
      also using this same CBPF in two places, for filtering and fanout, on a
      SOCK_DGRAM socket.
      
      Change 'psock_fanout' to use SOCK_RAW so that the CBPF program used with
      SO_ATTACH_FILTER can examine the entire frame.  Create a new CBPF
      program for use with PACKET_FANOUT_DATA which ignores the header, as it
      cannot see the ethernet header.
      
      Tested: Ran tools/testing/selftests/net/psock_{fanout,tpacket} 10 times,
      and they all passed.
      
      Fixes: 4d7b9dc1 ("tools: psock_lib: harden socket filter used by psock tests")
      Signed-off-by: 'Mike Maloney <maloneykernel@gmail.com>'
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c1f8d0f9
  11. 05 4月, 2017 1 次提交
  12. 12 1月, 2017 1 次提交
  13. 06 1月, 2017 4 次提交
  14. 04 1月, 2017 1 次提交
  15. 23 10月, 2016 1 次提交
    • D
      reuseport, bpf: add test case for bpf_get_numa_node_id · 3c2c3c16
      Daniel Borkmann 提交于
      The test case is very similar to reuseport_bpf_cpu, only that here
      we select socket members based on current numa node id.
      
        # numactl -H
        available: 2 nodes (0-1)
        node 0 cpus: 0 1 2 3 4 5 12 13 14 15 16 17
        node 0 size: 128867 MB
        node 0 free: 120080 MB
        node 1 cpus: 6 7 8 9 10 11 18 19 20 21 22 23
        node 1 size: 96765 MB
        node 1 free: 87504 MB
        node distances:
        node   0   1
          0:  10  20
          1:  20  10
      
        # ./reuseport_bpf_numa
        ---- IPv4 UDP ----
        send node 0, receive socket 0
        send node 1, receive socket 1
        send node 1, receive socket 1
        send node 0, receive socket 0
        ---- IPv6 UDP ----
        send node 0, receive socket 0
        send node 1, receive socket 1
        send node 1, receive socket 1
        send node 0, receive socket 0
        ---- IPv4 TCP ----
        send node 0, receive socket 0
        send node 1, receive socket 1
        send node 1, receive socket 1
        send node 0, receive socket 0
        ---- IPv6 TCP ----
        send node 0, receive socket 0
        send node 1, receive socket 1
        send node 1, receive socket 1
        send node 0, receive socket 0
        SUCCESS
      Signed-off-by: NDaniel Borkmann <daniel@iogearbox.net>
      Acked-by: NAlexei Starovoitov <ast@kernel.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      3c2c3c16
  16. 07 6月, 2016 1 次提交
  17. 15 4月, 2016 1 次提交
  18. 26 2月, 2016 1 次提交
  19. 11 2月, 2016 1 次提交
  20. 06 1月, 2016 1 次提交
  21. 05 1月, 2016 1 次提交
  22. 18 8月, 2015 2 次提交
  23. 19 5月, 2015 1 次提交
  24. 20 3月, 2015 1 次提交
  25. 14 3月, 2015 2 次提交
    • M
      selftests: Add install target · 32dcfba6
      Michael Ellerman 提交于
      This adds make install support to selftests. The basic usage is:
      
      $ cd tools/testing/selftests
      $ make install
      
      That installs into tools/testing/selftests/install, which can then be
      copied where ever necessary.
      
      The install destination is also configurable using eg:
      
      $ INSTALL_PATH=/mnt/selftests make install
      
      The implementation uses two targets in the child makefiles. The first
      "install" is expected to install all files into $(INSTALL_PATH).
      
      The second, "emit_tests", is expected to emit the test instructions (ie.
      bash script) on stdout. Separating this from install means the child
      makefiles need no knowledge of the location of the test script.
      Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
      Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
      32dcfba6
    • M
      selftests: Introduce minimal shared logic for running tests · 5e29a910
      Michael Ellerman 提交于
      This adds a Make include file which most selftests can then include to
      get the run_tests logic.
      
      On its own this has the advantage of some reduction in repetition, and
      also means the pass/fail message is defined in fewer places.
      
      However the key advantage is it will allow us to implement install very
      simply in a subsequent patch.
      
      The default implementation just executes each program in $(TEST_PROGS).
      
      We use a variable to hold the default implementation of $(RUN_TESTS)
      because that gives us a clean way to override it if necessary, ie. using
      override. The mount, memory-hotplug and mqueue tests use that to provide
      a different implementation.
      
      Tests are not run via /bin/bash, so if they are scripts they must be
      executable, we add a+x to several.
      Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
      Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
      5e29a910
  26. 12 11月, 2014 1 次提交
  27. 05 11月, 2014 1 次提交
  28. 12 5月, 2014 1 次提交
  29. 02 7月, 2013 1 次提交
  30. 30 4月, 2013 1 次提交
  31. 20 4月, 2013 1 次提交