]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
selftests: Introduce a new script to generate tc batch file
authorChris Mi <chrism@mellanox.com>
Fri, 27 Oct 2017 01:24:42 +0000 (18:24 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 29 Oct 2017 13:49:31 +0000 (22:49 +0900)
commit7f071998474a9e5f7b98103d3058a1b8ca5887e6
treeb0dbf7eab9447f3e5d5059c5418c5ef847001147
parent46e235c15ca44f34cb79f4dbec909b8c51999dc1
selftests: Introduce a new script to generate tc batch file

  # ./tdc_batch.py -h
  usage: tdc_batch.py [-h] [-n NUMBER] [-o] [-s] [-p] device file

  TC batch file generator

  positional arguments:
    device                device name
    file                  batch file name

  optional arguments:
    -h, --help            show this help message and exit
    -n NUMBER, --number NUMBER
                          how many lines in batch file
    -o, --skip_sw         skip_sw (offload), by default skip_hw
    -s, --share_action    all filters share the same action
    -p, --prio            all filters have different prio

Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Acked-by: Lucas Bates <lucasb@mojatatu.com>
Signed-off-by: Chris Mi <chrism@mellanox.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/tc-testing/tdc_batch.py [new file with mode: 0755]