/Linux-v6.1/tools/testing/selftests/tc-testing/tc-tests/actions/ |
D | ctinfo.json | 4 "name": "Add ctinfo action with default setting", 11 "$TC action flush action ctinfo", 17 "cmdUnderTest": "$TC action add action ctinfo index 10", 19 "verifyCmd": "$TC action get action ctinfo index 10", 20 "matchPattern": "action order [0-9]*: ctinfo zone 0 pipe.*index 10 ref", 23 "$TC action flush action ctinfo" 28 "name": "Add ctinfo action with dscp", 35 "$TC actions flush action ctinfo", 41 "cmdUnderTest": "$TC action add action ctinfo dscp 0xfc000000 0x01000000 index 100", 43 "verifyCmd": "$TC action ls action ctinfo", [all …]
|
D | bpf.json | 4 "name": "Add cBPF action with valid bytecode", 11 "$TC action flush action bpf", 17 …"cmdUnderTest": "$TC action add action bpf bytecode '4,40 0 0 12,21 0 1 2048,6 0 0 262144,6 0 0 0'… 19 "verifyCmd": "$TC action get action bpf index 100", 20 …"matchPattern": "action order [0-9]*: bpf bytecode '4,40 0 0 12,21 0 1 2048,6 0 0 262144,6 0 0 0' … 23 "$TC action flush action bpf" 28 "name": "Add cBPF action with invalid bytecode", 35 "$TC actions flush action bpf", 41 …"cmdUnderTest": "$TC action add action bpf bytecode '4,40 0 0 12,31 0 1 2048,6 0 0 262144,6 0 0 0'… 43 "verifyCmd": "$TC action get action bpf index 100", [all …]
|
D | gate.json | 4 "name": "Add gate action with priority and sched-entry", 11 "$TC action flush action gate", 17 … "cmdUnderTest": "$TC action add action gate priority 1 sched-entry close 100000000ns index 100", 19 "verifyCmd": "$TC action get action gate index 100", 20 "matchPattern": "action order [0-9]*: .*priority 1.*index 100 ref", 23 "$TC action flush action gate" 28 "name": "Add gate action with base-time", 35 "$TC actions flush action gate", 41 …"cmdUnderTest": "$TC action add action gate base-time 200000000000ns sched-entry close 100000000ns… 43 "verifyCmd": "$TC action ls action gate", [all …]
|
D | ife.json | 4 "name": "Create valid ife encode action with mark and pass control", 11 "$TC actions flush action ife", 17 "cmdUnderTest": "$TC actions add action ife encode allow mark pass index 2", 19 "verifyCmd": "$TC actions get action ife index 2", 20 …"matchPattern": "action order [0-9]*: ife encode action pass.*type 0[xX]ED3E.*allow mark.*index 2", 23 "$TC actions flush action ife" 28 "name": "Create valid ife encode action with mark and pipe control", 35 "$TC actions flush action ife", 41 "cmdUnderTest": "$TC actions add action ife encode use mark 10 pipe index 2", 43 "verifyCmd": "$TC actions get action ife index 2", [all …]
|
D | gact.json | 4 "name": "Add valid pass action", 11 "$TC actions flush action gact", 17 "cmdUnderTest": "$TC actions add action pass index 8", 19 "verifyCmd": "$TC actions list action gact", 20 "matchPattern": "action order [0-9]*: gact action pass.*index 8 ref", 23 "$TC actions flush action gact" 28 "name": "Add valid pipe action", 35 "$TC actions flush action gact", 41 "cmdUnderTest": "$TC actions add action pipe index 6", 43 "verifyCmd": "$TC actions list action gact", [all …]
|
D | police.json | 4 "name": "Add valid basic police action", 11 "$TC actions flush action police", 17 "cmdUnderTest": "$TC actions add action police rate 1kbit burst 10k index 1", 19 "verifyCmd": "$TC actions ls action police", 20 "matchPattern": "action order [0-9]*: police 0x1 rate 1Kbit burst 10Kb", 23 "$TC actions flush action police" 28 "name": "Add police action with duplicate index", 35 "$TC actions flush action police", 40 "$TC actions add action police rate 4Mbit burst 120k index 9" 42 "cmdUnderTest": "$TC actions add action police rate 8kbit burst 24k index 9", [all …]
|
D | mpls.json | 4 "name": "Add MPLS dec_ttl action with pipe opcode", 11 "$TC actions flush action mpls", 17 "cmdUnderTest": "$TC actions add action mpls dec_ttl pipe index 8", 19 "verifyCmd": "$TC actions list action mpls", 20 "matchPattern": "action order [0-9]+: mpls.*dec_ttl.*pipe.*index 8 ref", 23 "$TC actions flush action mpls" 28 "name": "Add mpls dec_ttl action with pass opcode", 35 "$TC actions flush action mpls", 41 "cmdUnderTest": "$TC actions add action mpls dec_ttl pass index 8", 43 "verifyCmd": "$TC actions get action mpls index 8", [all …]
|
D | skbedit.json | 4 "name": "Add skbedit action with valid mark", 11 "$TC actions flush action skbedit", 17 "cmdUnderTest": "$TC actions add action skbedit mark 1", 19 "verifyCmd": "$TC actions list action skbedit", 20 "matchPattern": "action order [0-9]*: skbedit mark 1", 23 "$TC actions flush action skbedit" 28 "name": "Add skbedit action with 32-bit maximum mark", 35 "$TC actions flush action skbedit", 41 "cmdUnderTest": "$TC actions add action skbedit mark 4294967295 pipe index 1", 43 "verifyCmd": "$TC actions get action skbedit index 1", [all …]
|
D | xt.json | 4 "name": "Add xt action with log-prefix", 11 "$TC actions flush action xt", 17 "cmdUnderTest": "$TC action add action xt -j LOG --log-prefix PONG index 100", 19 "verifyCmd": "$TC action ls action xt", 20 … "matchPattern": "action order [0-9]*:.*target LOG level warning prefix \"PONG\".*index 100 ref", 23 "$TC actions flush action xt" 28 "name": "Replace xt action log-prefix", 35 "$TC actions flush action xt", 41 "$TC action add action xt -j LOG --log-prefix PONG index 1", 47 "cmdUnderTest": "$TC action replace action xt -j LOG --log-prefix WIN index 1", [all …]
|
D | sample.json | 4 "name": "Add valid sample action with mandatory arguments", 11 "$TC actions flush action sample", 17 "cmdUnderTest": "$TC actions add action sample rate 10 group 1 index 2", 19 "verifyCmd": "$TC actions get action sample index 2", 20 "matchPattern": "action order [0-9]+: sample rate 1/10 group 1.*index 2 ref", 23 "$TC actions flush action sample" 28 "name": "Add valid sample action with mandatory arguments and continue control action", 35 "$TC actions flush action sample", 41 "cmdUnderTest": "$TC actions add action sample rate 700 group 2 continue index 2", 43 "verifyCmd": "$TC actions get action sample index 2", [all …]
|
D | nat.json | 4 "name": "Add nat action on ingress with default control action", 11 "$TC actions flush action nat", 17 "cmdUnderTest": "$TC actions add action nat ingress 192.168.1.1 200.200.200.1", 19 "verifyCmd": "$TC actions ls action nat", 20 "matchPattern": "action order [0-9]+: nat ingress 192.168.1.1/32 200.200.200.1 pass", 23 "$TC actions flush action nat" 28 "name": "Add nat action on ingress with pipe control action", 35 "$TC actions flush action nat", 41 "cmdUnderTest": "$TC actions add action nat ingress 1.1.1.1 2.2.2.1 pipe index 77", 43 "verifyCmd": "$TC actions get action nat index 77", [all …]
|
D | pedit.json | 4 "name": "Add pedit action that mangles IP TTL", 11 "$TC actions flush action pedit", 17 "cmdUnderTest": "$TC actions add action pedit ex munge ip ttl set 10", 19 "verifyCmd": "$TC actions ls action pedit", 20 …"matchPattern": "action order [0-9]+: pedit action pass keys 1.*index 1 ref.*key #0 at ipv4\\+8:… 23 "$TC actions flush action pedit" 28 "name": "Replace pedit action with invalid goto chain", 35 "$TC actions flush action pedit", 40 "$TC actions add action pedit ex munge ip ttl set 10 pass index 90" 42 …"cmdUnderTest": "$TC actions replace action pedit ex munge ip ttl set 10 goto chain 42 index 90 co… [all …]
|
D | csum.json | 4 "name": "Add csum iph action", 11 "$TC actions flush action csum", 17 "cmdUnderTest": "$TC actions add action csum iph index 800", 19 "verifyCmd": "$TC actions get action csum index 800", 20 "matchPattern": "action order [0-9]*: csum \\(iph\\) action pass.*index 800 ref", 23 "$TC actions flush action csum" 28 "name": "Add csum ip4h action", 35 "$TC actions flush action csum", 41 "cmdUnderTest": "$TC actions add action csum ip4h index 7", 43 "verifyCmd": "$TC actions get action csum index 7", [all …]
|
D | vlan.json | 4 "name": "Add vlan pop action with pipe opcode", 11 "$TC actions flush action vlan", 17 "cmdUnderTest": "$TC actions add action vlan pop pipe index 8", 19 "verifyCmd": "$TC actions list action vlan", 20 "matchPattern": "action order [0-9]+: vlan.*pop.*pipe.*index 8 ref", 23 "$TC actions flush action vlan" 28 "name": "Add vlan pop action with pass opcode", 35 "$TC actions flush action vlan", 41 "cmdUnderTest": "$TC actions add action vlan pop pass index 8", 43 "verifyCmd": "$TC actions get action vlan index 8", [all …]
|
D | skbmod.json | 4 "name": "Add skbmod action to set destination mac", 11 "$TC actions flush action skbmod", 17 "cmdUnderTest": "$TC actions add action skbmod set dmac 11:22:33:44:55:66 index 5", 19 "verifyCmd": "$TC actions ls action skbmod", 20 "matchPattern": "action order [0-9]*: skbmod pipe set dmac 11:22:33:44:55:66\\s+index 5", 23 "$TC actions flush action skbmod" 28 "name": "Add skbmod action to set source mac", 35 "$TC actions flush action skbmod", 41 "cmdUnderTest": "$TC actions add action skbmod set smac 77:88:99:AA:BB:CC index 7", 43 "verifyCmd": "$TC actions get action skbmod index 7", [all …]
|
D | tunnel_key.json | 4 "name": "Add tunnel_key set action with mandatory parameters", 11 "$TC actions flush action tunnel_key", 17 … "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 10.10.10.1 dst_ip 20.20.20.2 id 1", 19 "verifyCmd": "$TC actions list action tunnel_key", 20 …"matchPattern": "action order [0-9]+: tunnel_key.*set.*src_ip 10.10.10.1.*dst_ip 20.20.20.2.*key_i… 23 "$TC actions flush action tunnel_key" 28 "name": "Add tunnel_key set action with missing mandatory src_ip parameter", 35 "$TC actions flush action tunnel_key", 41 "cmdUnderTest": "$TC actions add action tunnel_key set dst_ip 20.20.20.2 id 100", 43 "verifyCmd": "$TC actions list action tunnel_key", [all …]
|
D | connmark.json | 4 "name": "Add valid connmark action with defaults", 11 "$TC actions flush action connmark", 17 "cmdUnderTest": "$TC actions add action connmark", 19 "verifyCmd": "$TC actions list action connmark", 20 "matchPattern": "action order [0-9]+: connmark zone 0 pipe", 23 "$TC actions flush action connmark" 28 "name": "Add valid connmark action with control pass", 35 "$TC actions flush action connmark", 41 "cmdUnderTest": "$TC actions add action connmark pass index 1", 43 "verifyCmd": "$TC actions get action connmark index 1", [all …]
|
D | mirred.json | 4 "name": "Add mirred mirror to egress action", 11 "$TC actions flush action mirred", 17 "cmdUnderTest": "$TC actions add action mirred egress mirror index 1 dev lo", 19 "verifyCmd": "$TC actions list action mirred", 20 "matchPattern": "action order [0-9]*: mirred \\(Egress Mirror to device lo\\).*index 1 ref", 23 "$TC actions flush action mirred" 28 "name": "Add mirred redirect to egress action", 35 "$TC actions flush action mirred", 41 "cmdUnderTest": "$TC actions add action mirred egress redirect index 2 dev lo action pipe", 43 "verifyCmd": "$TC actions list action mirred", [all …]
|
D | simple.json | 4 "name": "Add simple action", 11 "$TC actions flush action simple", 17 "cmdUnderTest": "$TC actions add action simple sdata \"A triumph\" index 60", 19 "verifyCmd": "$TC actions list action simple", 20 "matchPattern": "action order [0-9]*: Simple <A triumph>.*index 60 ref", 23 "$TC actions flush action simple" 28 "name": "Add simple action with change command", 35 "$TC actions flush action simple", 41 "cmdUnderTest": "$TC actions change action simple sdata \"Not changed\" index 60", 43 "verifyCmd": "$TC actions list action simple", [all …]
|
D | ct.json | 4 "name": "Add simple ct action", 11 "$TC actions flush action ct", 17 "cmdUnderTest": "$TC actions add action ct index 42", 19 "verifyCmd": "$TC actions list action ct", 20 "matchPattern": "action order [0-9]*: ct zone 0 pipe.*index 42 ref", 23 "$TC actions flush action ct" 28 "name": "Add simple ct action with cookie", 35 "$TC actions flush action ct", 41 "cmdUnderTest": "$TC actions add action ct index 42 cookie deadbeef", 43 "verifyCmd": "$TC actions list action ct", [all …]
|
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
D | dr_action.c | 544 /* Check action state machine is valid */ in dr_action_validate_and_get_next_state() 610 /* Ignore the modify TTL action. in dr_action_modify_ttl_adjust() 611 * It is always kept as last HW action. in dr_action_modify_ttl_adjust() 666 struct mlx5dr_action *action; in mlx5dr_actions_build_ste_arr() local 670 action = actions[i]; in mlx5dr_actions_build_ste_arr() 671 action_type = action->action_type; in mlx5dr_actions_build_ste_arr() 678 dest_action = action; in mlx5dr_actions_build_ste_arr() 679 dest_tbl = action->dest_tbl; in mlx5dr_actions_build_ste_arr() 702 if (!action->dest_tbl->fw_tbl.rx_icm_addr) { in mlx5dr_actions_build_ste_arr() 728 attr.ctr_id = action->ctr->ctr_id + in mlx5dr_actions_build_ste_arr() [all …]
|
D | fs_dr.c | 33 struct mlx5dr_action *action = NULL; in set_miss_action() local 39 action = mlx5dr_action_create_dest_table(next_tbl); in set_miss_action() 40 if (!action) in set_miss_action() 44 err = mlx5dr_table_set_miss_action(ft->fs_dr_table.dr_table, action); in set_miss_action() 45 if (err && action) { in set_miss_action() 46 err = mlx5dr_action_destroy(action); in set_miss_action() 49 "Failed to destroy action (%d)\n", err); in set_miss_action() 50 action = NULL; in set_miss_action() 52 ft->fs_dr_table.miss_action = action; in set_miss_action() 56 mlx5_core_err(ns->dev, "Failed to destroy action (%d)\n", in set_miss_action() [all …]
|
/Linux-v6.1/tools/testing/selftests/tc-testing/tc-tests/filters/ |
D | fw.json | 15 "cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 65535 fw action ok", 18 "matchPattern": "pref 65535 fw.*handle 0x1.*gact action pass", 37 "cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 65536 fw action ok", 40 "matchPattern": "pref 65536 fw.*handle 0x1.*gact action pass", 48 "name": "Add fw filter with action ok", 164 "cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 1 fw action ok", 167 "matchPattern": "handle 0x1.*gact action pass", 175 "name": "Add fw filter with action ok by reference", 176 …"__comment": "We add sleep here because action might have not been deleted by workqueue just yet. … 184 "$TC actions add action gact ok index 1" [all …]
|
D | matchall.json | 4 "name": "Add ingress matchall filter for protocol ipv4 and action PASS", 13 …erTest": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ip matchall action ok", 16 …"matchPattern": "^filter parent ffff: protocol ip pref 1 matchall.*handle 0x1.*gact action pass.*r… 25 "name": "Add egress matchall filter for protocol ipv4 and action PASS", 34 …UnderTest": "$TC filter add dev $DUMMY parent 1: handle 0x1 prio 1 protocol ip matchall action ok", 37 …"matchPattern": "^filter parent 1: protocol ip pref 1 matchall.*handle 0x1.*gact action pass.*ref … 46 "name": "Add ingress matchall filter for protocol ipv6 and action DROP", 55 …st": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ipv6 matchall action drop", 58 …": "^filter parent ffff: protocol ipv6 pref 1 matchall.*handle 0x1.*gact action drop.*ref 1 bind 1… 67 "name": "Add egress matchall filter for protocol ipv6 and action DROP", [all …]
|
/Linux-v6.1/tools/testing/selftests/drivers/net/mlxsw/ |
D | tc_restrictions.sh | 48 skip_sw dst_ip 192.0.2.2 action drop 65 skip_sw dst_ip 192.0.2.2 action drop 74 skip_sw dst_ip 192.0.2.2 action drop 97 action mirred egress redirect dev $swp2 115 action mirred egress redirect dev $swp2 125 action mirred egress redirect dev $swp2 132 action mirred egress redirect dev $swp2 151 action mirred egress mirror dev $swp2 152 check_err $? "Failed to add rule with single mirror action" 158 action mirred egress mirror dev $swp2 \ [all …]
|