• Dmytro Linkin's avatar
    selftests: tc-testing: Add pedit tests · 49b1b4a1
    Dmytro Linkin authored
    Add 36 pedit action tests to check pedit options described in tc-pedit(8)
    man page. Test cases can be specified by categories: actions, pedit,
    raw_op, layered_op. RAW_OP cases check offset option for u8, u16 and u32
    offset size. LAYERED_OP cases check fields option for eth, ip, ip6,
    tcp and udp headers.
    
    Include following tests:
    377e - Add pedit action with RAW_OP offset u32
    a0ca - Add pedit action with RAW_OP offset u32 (INVALID)
    dd8a - Add pedit action with RAW_OP offset u16 u16
    53db - Add pedit action with RAW_OP offset u16 (INVALID)
    5c7e - Add pedit action with RAW_OP offset u8 add value
    2893 - Add pedit action with RAW_OP offset u8 quad
    3a07 - Add pedit action with RAW_OP offset u8-u16-u8
    ab0f - Add pedit action with RAW_OP offset u16-u8-u8
    9d12 - Add pedit action with RAW_OP offset u32 set u16 clear u8 invert
    ebfa - Add pedit action with RAW_OP offset overflow u32 (INVALID)
    f512 - Add pedit action with RAW_OP offset u16 at offmask shift set
    c2cb - Add pedit action with RAW_OP offset u32 retain value
    86d4 - Add pedit action with LAYERED_OP eth set src & dst
    c715 - Add pedit action with LAYERED_OP eth set src (INVALID)
    ba22 - Add pedit action with LAYERED_OP eth type set/clear sequence
    5810 - Add pedit action with LAYERED_OP ip set src & dst
    1092 - Add pedit action with LAYERED_OP ip set ihl & dsfield
    02d8 - Add pedit action with LAYERED_OP ip set ttl & protocol
    3e2d - Add pedit action with LAYERED_OP ip set ttl (INVALID)
    31ae - Add pedit action with LAYERED_OP ip ttl clear/set
    486f - Add pedit action with LAYERED_OP ip set duplicate fields
    e790 - Add pedit action with LAYERED_OP ip set ce, df, mf, firstfrag,
    nofrag fields
    6829 - Add pedit action with LAYERED_OP beyond ip set dport & sport
    afd8 - Add pedit action with LAYERED_OP beyond ip set icmp_type &
    icmp_code
    3143 - Add pedit action with LAYERED_OP beyond ip set dport (INVALID)
    fc1f - Add pedit action with LAYERED_OP ip6 set src & dst
    6d34 - Add pedit action with LAYERED_OP ip6 dst retain value (INVALID)
    6f5e - Add pedit action with LAYERED_OP ip6 flow_lbl
    6795 - Add pedit action with LAYERED_OP ip6 set payload_len, nexthdr,
    hoplimit
    1442 - Add pedit action with LAYERED_OP tcp set dport & sport
    b7ac - Add pedit action with LAYERED_OP tcp sport set (INVALID)
    cfcc - Add pedit action with LAYERED_OP tcp flags set
    3bc4 - Add pedit action with LAYERED_OP tcp set dport, sport & flags
    fields
    f1c8 - Add pedit action with LAYERED_OP udp set dport & sport
    d784 - Add pedit action with mixed RAW/LAYERED_OP #1
    70ca - Add pedit action with mixed RAW/LAYERED_OP #2
    Signed-off-by: default avatarDmytro Linkin <dmitrolin@mellanox.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    49b1b4a1
pedit.json 30.1 KB