1. 30 6月, 2018 1 次提交
  2. 28 6月, 2018 1 次提交
  3. 13 6月, 2018 1 次提交
  4. 18 5月, 2018 1 次提交
  5. 17 5月, 2018 2 次提交
  6. 11 5月, 2018 1 次提交
  7. 03 5月, 2018 1 次提交
  8. 23 4月, 2018 1 次提交
  9. 17 4月, 2018 1 次提交
  10. 31 3月, 2018 1 次提交
  11. 27 3月, 2018 1 次提交
    • L
      tc-testing: Correct compound statements for namespace execution · cd464197
      Lucas Bates 提交于
      If tdc is executing test cases inside a namespace, only the
      first command in a compound statement will be executed inside
      the namespace by tdc. As a result, the subsequent commands
      are not executed inside the namespace and the test will fail.
      
      Example:
      
      for i in {x..y}; do args="foo"; done && tc actions add $args
      
      The namespace execution feature will prepend 'ip netns exec'
      to the command:
      
      ip netns exec tcut for i in {x..y}; do args="foo"; done && \
        tc actions add $args
      
      So the actual tc command is not parsed by the shell as being
      part of the namespace execution.
      
      Enclosing these compound statements inside a bash invocation
      with proper escape characters resolves the problem by creating
      a subshell inside the namespace.
      Signed-off-by: NLucas Bates <lucasb@mojatatu.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      cd464197
  12. 26 3月, 2018 1 次提交
  13. 24 3月, 2018 1 次提交
    • D
      tc-testing: add selftests for 'bpf' action · 440ea4ae
      Davide Caratti 提交于
      Test d959: Add cBPF action with valid bytecode
      Test f84a: Add cBPF action with invalid bytecode
      Test e939: Add eBPF action with valid object-file
      Test 282d: Add eBPF action with invalid object-file
      Test d819: Replace cBPF bytecode and action control
      Test 6ae3: Delete cBPF action
      Test 3e0d: List cBPF actions
      Test 55ce: Flush BPF actions
      Test ccc3: Add cBPF action with duplicate index
      Test 89c7: Add cBPF action with invalid index
      Test 7ab9: Add cBPF action with cookie
      
      Changes since v1:
       - use index=2^32-1 in test ccc3, add tests 7a89, 89c7 (thanks Roman Mashak)
       - added test 282d
      Signed-off-by: NDavide Caratti <dcaratti@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      440ea4ae
  14. 13 3月, 2018 2 次提交
  15. 10 3月, 2018 1 次提交
  16. 05 3月, 2018 1 次提交
    • D
      tc-testing: skbmod: fix match value of ethertype · 79f3a8e6
      Davide Caratti 提交于
      iproute2 print_skbmod() prints the configured ethertype using format 0x%X:
      therefore, test 9aa8 systematically fails, because it configures action #4
      using ethertype 0x0031, and expects 0x0031 when it reads it back. Changing
      the expected value to 0x31 lets the test result 'not ok' become 'ok'.
      
      tested with:
       # ./tdc.py -e 9aa8
       Test 9aa8: Get a single skbmod action from a list
       All test results:
      
       1..1
       ok 1 9aa8 Get a single skbmod action from a list
      
      Fixes: cf797ac4 ("tc-testing: Add test cases for police and skbmod")
      Signed-off-by: NDavide Caratti <dcaratti@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      79f3a8e6
  17. 29 10月, 2017 1 次提交
  18. 15 10月, 2017 3 次提交
  19. 30 8月, 2017 1 次提交
  20. 21 6月, 2017 1 次提交
    • L
      selftests: Introduce tc testsuite · 76b903ee
      Lucas Bates 提交于
      Add the beginnings of a testsuite for tc functionality in the kernel.
      These are a series of unit tests that use the tc executable and verify
      the success of those commands by checking both the exit codes and the
      output from tc's 'show' operation.
      
      To run the tests:
        # cd tools/testing/selftests/tc-testing
        # sudo ./tdc.py
      
      You can specify the tc executable to use with the -p argument on the command
      line or editing the 'TC' variable in tdc_config.py. Refer to the README for
      full details on how to run.
      
      The initial complement of test cases are limited mostly to tc actions. Test
      cases are most welcome; see the creating-testcases subdirectory for help
      in creating them.
      Signed-off-by: NLucas Bates <lucasb@mojatatu.com>
      Signed-off-by: NJamal Hadi Salim <jhs@mojatatu.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      76b903ee