1. 01 11月, 2021 2 次提交
  2. 29 10月, 2021 1 次提交
  3. 25 10月, 2021 4 次提交
  4. 24 10月, 2021 1 次提交
  5. 23 10月, 2021 1 次提交
  6. 18 10月, 2021 1 次提交
  7. 16 10月, 2021 2 次提交
  8. 15 10月, 2021 2 次提交
  9. 12 10月, 2021 1 次提交
  10. 09 10月, 2021 1 次提交
  11. 08 10月, 2021 4 次提交
  12. 04 10月, 2021 1 次提交
  13. 27 9月, 2021 1 次提交
    • P
      selftests: net: fib_nexthops: Wait before checking reported idle time · b69c9946
      Petr Machata 提交于
      The purpose of this test is to verify that after a short activity passes,
      the reported time is reasonable: not zero (which could be reported by
      mistake), and not something outrageous (which would be indicative of an
      issue in used units).
      
      However, the idle time is reported in units of clock_t, or hundredths of
      second. If the initial sequence of commands is very quick, it is possible
      that the idle time is reported as just flat-out zero. When this test was
      recently enabled in our nightly regression, we started seeing spurious
      failures for exactly this reason.
      
      Therefore buffer the delay leading up to the test with a sleep, to make
      sure there is no legitimate way of reporting 0.
      Signed-off-by: NPetr Machata <petrm@nvidia.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b69c9946
  14. 19 9月, 2021 2 次提交
    • S
      selftests: net: af_unix: Fix makefile to use TEST_GEN_PROGS · e30cd812
      Shuah Khan 提交于
      Makefile uses TEST_PROGS instead of TEST_GEN_PROGS to define
      executables. TEST_PROGS is for shell scripts that need to be
      installed and run by the common lib.mk framework. The common
      framework doesn't touch TEST_PROGS when it does build and clean.
      
      As a result "make kselftest-clean" and "make clean" fail to remove
      executables. Run and install work because the common framework runs
      and installs TEST_PROGS. Build works because the Makefile defines
      "all" rule which is unnecessary if TEST_GEN_PROGS is used.
      
      Use TEST_GEN_PROGS so the common framework can handle build/run/
      install/clean properly.
      Signed-off-by: NShuah Khan <skhan@linuxfoundation.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e30cd812
    • S
      selftests: net: af_unix: Fix incorrect args in test result msg · 48514a22
      Shuah Khan 提交于
      Fix the args to fprintf(). Splitting the message ends up passing
      incorrect arg for "sigurg %d" and an extra arg overall. The test
      result message ends up incorrect.
      
      test_unix_oob.c: In function ‘main’:
      test_unix_oob.c:274:43: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘char *’ [-Wformat=]
        274 |   fprintf(stderr, "Test 3 failed, sigurg %d len %d OOB %c ",
            |                                          ~^
            |                                           |
            |                                           int
            |                                          %s
        275 |   "atmark %d\n", signal_recvd, len, oob, atmark);
            |   ~~~~~~~~~~~~~
            |   |
            |   char *
      test_unix_oob.c:274:19: warning: too many arguments for format [-Wformat-extra-args]
        274 |   fprintf(stderr, "Test 3 failed, sigurg %d len %d OOB %c ",
      Signed-off-by: NShuah Khan <skhan@linuxfoundation.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      48514a22
  15. 18 9月, 2021 1 次提交
  16. 12 9月, 2021 1 次提交
  17. 02 9月, 2021 2 次提交
  18. 26 8月, 2021 1 次提交
    • P
      selftests/net: allow GRO coalesce test on veth · 9af771d2
      Paolo Abeni 提交于
      This change extends the existing GRO coalesce test to
      allow running on top of a veth pair, so that no H/W dep
      is required to run them.
      
      By default gro.sh will use the veth backend, and will try
      to use exiting H/W in loopback mode if a specific device
      name is provided with the '-i' command line option.
      
      No functional change is intended for the loopback-based
      tests, just move all the relevant initialization/cleanup
      code into the related script.
      
      Introduces a new initialization helper script for the
      veth backend, and plugs the correct helper script according
      to the provided command line.
      
      Additionally, enable veth-based tests by default.
      
      v1 -> v2:
        - drop unused code in setup_veth_ns() - Willem
      Signed-off-by: NPaolo Abeni <pabeni@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      9af771d2
  19. 25 8月, 2021 2 次提交
  20. 24 8月, 2021 1 次提交
  21. 20 8月, 2021 1 次提交
  22. 18 8月, 2021 4 次提交
  23. 17 8月, 2021 1 次提交
    • J
      selftests: net: improved IOAM tests · 752be297
      Justin Iurman 提交于
      As previously discussed with David Ahern, here is a refactored and improved
      version of the IOAM self-test. It is now more complete and more robust. Now,
      all tests are divided into three categories: OUTPUT (evaluates the IOAM
      processing by the sender), INPUT (evaluates the IOAM processing by the receiver)
      and GLOBAL (evaluates wider use cases that do not fall into the other two
      categories). Both OUTPUT and INPUT tests only use a two-node topology (alpha and
      beta), while GLOBAL tests use the entire three-node topology (alpha, beta,
      gamma). Each test is documented inside its own handler in the (bash) script.
      Signed-off-by: NJustin Iurman <justin.iurman@uliege.be>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      752be297
  24. 14 8月, 2021 1 次提交
  25. 05 8月, 2021 1 次提交
    • C
      selftests/net: toeplitz test · 5ebfb4cc
      Coco Li 提交于
      To verify that this hash implements the Toeplitz hash function.
      
      Additionally, provide a script toeplitz.sh to run the test in loopback mode
      on a networking device of choice (see setup_loopback.sh). Since the
      script modifies the NIC setup, it will not be run by selftests
      automatically.
      
      Tested:
      ./toeplitz.sh -i eth0 -irq_prefix <eth0_pattern> -t -6
      carrier ready
      rxq 0: cpu 14
      rxq 1: cpu 20
      rxq 2: cpu 17
      rxq 3: cpu 23
      cpu 14: rx_hash 0x69103ebc [saddr fda8::2 daddr fda8::1 sport 58938 dport 8000] OK rxq 0 (cpu 14)
      ...
      cpu 20: rx_hash 0x257118b9 [saddr fda8::2 daddr fda8::1 sport 59258 dport 8000] OK rxq 1 (cpu 20)
      count: pass=111 nohash=0 fail=0
      Test Succeeded!
      Signed-off-by: NCoco Li <lixiaoyan@google.com>
      Reviewed-by: NWillem de Bruijn <willemb@google.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      5ebfb4cc