Home
last modified time | relevance | path

Searched full:tc (Results 1 – 25 of 804) sorted by relevance

12345678910>>...33

/Linux-v5.10/tools/testing/selftests/tc-testing/tc-tests/actions/
Dmpls.json11 "$TC actions flush action mpls",
17 "cmdUnderTest": "$TC actions add action mpls dec_ttl pipe index 8",
19 "verifyCmd": "$TC actions list action mpls",
23 "$TC actions flush action mpls"
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",
47 "$TC actions flush action mpls"
59 "$TC actions flush action mpls",
65 "cmdUnderTest": "$TC actions add action mpls dec_ttl drop index 8",
[all …]
Dgact.json11 "$TC actions flush action gact",
17 "cmdUnderTest": "$TC actions add action pass index 8",
19 "verifyCmd": "$TC actions list action gact",
23 "$TC actions flush action gact"
35 "$TC actions flush action gact",
41 "cmdUnderTest": "$TC actions add action pipe index 6",
43 "verifyCmd": "$TC actions list action gact",
47 "$TC actions flush action gact"
59 "$TC actions flush action gact",
65 "cmdUnderTest": "$TC actions add action reclassify index 5",
[all …]
Dskbedit.json11 "$TC actions flush action skbedit",
17 "cmdUnderTest": "$TC actions add action skbedit mark 1",
19 "verifyCmd": "$TC actions list action skbedit",
23 "$TC actions flush action skbedit"
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",
47 "$TC actions flush action skbedit"
59 "$TC actions flush action skbedit",
65 "cmdUnderTest": "$TC actions add action skbedit mark 666777888999",
[all …]
Dpolice.json11 "$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",
23 "$TC actions flush action police"
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",
44 "verifyCmd": "$TC actions ls action police",
48 "$TC actions flush action police"
60 "$TC actions flush action police",
[all …]
Dskbmod.json11 "$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",
23 "$TC actions flush action skbmod"
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",
47 "$TC actions flush action skbmod"
59 "$TC actions flush action skbmod",
65 "cmdUnderTest": "$TC actions add action skbmod set smac 00:44:55:44:55",
[all …]
Dpedit.json11 "$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",
23 "$TC actions flush action pedit"
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…
44 "verifyCmd": "$TC actions ls action pedit",
48 "$TC actions flush action pedit"
61 "$TC actions flush action pedit",
[all …]
Dvlan.json11 "$TC actions flush action vlan",
17 "cmdUnderTest": "$TC actions add action vlan pop pipe index 8",
19 "verifyCmd": "$TC actions list action vlan",
23 "$TC actions flush action vlan"
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",
47 "$TC actions flush action vlan"
59 "$TC actions flush action vlan",
65 "cmdUnderTest": "$TC actions add action vlan pop drop index 8",
[all …]
Dsample.json11 "$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",
23 "$TC actions flush action sample"
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",
47 "$TC actions flush action sample"
59 "$TC actions flush action sample",
65 "cmdUnderTest": "$TC actions add action sample rate 10000 group 11 drop index 22",
[all …]
Dmirred.json11 "$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",
23 "$TC actions flush action mirred"
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",
47 "$TC actions flush action mirred",
48 "$TC actions flush action gact"
60 "$TC actions flush action mirred",
[all …]
Dnat.json11 "$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",
23 "$TC actions flush action nat"
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",
47 "$TC actions flush action nat"
59 "$TC actions flush action nat",
65 …"cmdUnderTest": "$TC actions add action nat ingress 192.168.10.10 192.168.20.20 continue index 100…
[all …]
Dife.json11 "$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",
23 "$TC actions flush action ife"
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",
47 "$TC actions flush action ife"
59 "$TC actions flush action ife",
65 "cmdUnderTest": "$TC actions add action ife encode allow mark continue index 2",
[all …]
Dcsum.json11 "$TC actions flush action csum",
17 "cmdUnderTest": "$TC actions add action csum iph index 800",
19 "verifyCmd": "$TC actions get action csum index 800",
23 "$TC actions flush action csum"
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",
47 "$TC actions flush action csum"
59 "$TC actions flush action csum",
65 "cmdUnderTest": "$TC actions add action csum ipv4h index 1122",
[all …]
Dtunnel_key.json11 "$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",
23 "$TC actions flush action tunnel_key"
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",
48 "$TC actions flush action tunnel_key",
64 "$TC actions flush action tunnel_key",
70 "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 10.10.10.1 id 100",
[all …]
Dconnmark.json11 "$TC actions flush action connmark",
17 "cmdUnderTest": "$TC actions add action connmark",
19 "verifyCmd": "$TC actions list action connmark",
23 "$TC actions flush action connmark"
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",
47 "$TC actions flush action connmark"
59 "$TC actions flush action connmark",
65 "cmdUnderTest": "$TC actions add action connmark drop index 100",
[all …]
Dct.json11 "$TC actions flush action ct",
17 "cmdUnderTest": "$TC actions add action ct index 42",
19 "verifyCmd": "$TC actions list action ct",
23 "$TC actions flush action ct"
35 "$TC actions flush action ct",
41 "cmdUnderTest": "$TC actions add action ct index 42 cookie deadbeef",
43 "verifyCmd": "$TC actions list action ct",
47 "$TC actions flush action ct"
59 "$TC actions flush action ct",
65 "cmdUnderTest": "$TC actions add action ct clear index 42",
[all …]
Dbpf.json11 "$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",
23 "$TC action flush action bpf"
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",
47 "$TC actions flush action bpf"
62 "$TC action flush action bpf",
68 …"cmdUnderTest": "$TC action add action bpf object-file $EBPFDIR/action.o section action-ok index 6…
[all …]
/Linux-v5.10/tools/testing/selftests/tc-testing/tc-tests/filters/
Dfw.json13 "$TC qdisc add dev $DEV1 ingress"
15 "cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 65535 fw action ok",
17 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 65535 protocol all fw",
21 "$TC qdisc del dev $DEV1 ingress"
35 "$TC qdisc add dev $DEV1 ingress"
37 "cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 65536 fw action ok",
39 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 65536 protocol all fw",
43 "$TC qdisc del dev $DEV1 ingress"
162 "$TC qdisc add dev $DEV1 ingress"
164 "cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 1 fw action ok",
[all …]
Dbasic.json13 "$TC qdisc add dev $DEV1 ingress"
15 …"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 protocol ip prio 1 basic match 'cm…
17 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 1 protocol ip basic",
21 "$TC qdisc del dev $DEV1 ingress"
35 "$TC qdisc add dev $DEV1 ingress"
37 …"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 protocol ip prio 1 basic match 'cm…
39 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 1 protocol ip basic",
43 "$TC qdisc del dev $DEV1 ingress"
57 "$TC qdisc add dev $DEV1 ingress"
59 …"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 protocol ip prio 1 basic match 'cm…
[all …]
Dmatchall.json11 "$TC qdisc add dev $DUMMY ingress"
13 …"cmdUnderTest": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ip matchall act…
15 "verifyCmd": "$TC filter get dev $DUMMY parent ffff: handle 1 prio 1 protocol ip matchall",
19 "$TC qdisc del dev $DUMMY ingress",
32 "$TC qdisc add dev $DUMMY root handle 1: prio"
34 …"cmdUnderTest": "$TC filter add dev $DUMMY parent 1: handle 0x1 prio 1 protocol ip matchall action…
36 "verifyCmd": "$TC filter get dev $DUMMY parent 1: handle 1 prio 1 protocol ip matchall",
40 "$TC qdisc del dev $DUMMY root handle 1: prio",
53 "$TC qdisc add dev $DUMMY ingress"
55 …"cmdUnderTest": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ipv6 matchall a…
[all …]
/Linux-v5.10/drivers/ntb/test/
Dntb_tool.c208 struct tool_ctx *tc; member
233 struct tool_ctx *tc; member
239 struct tool_ctx *tc; member
244 struct tool_ctx *tc; member
291 struct tool_ctx *tc = ctx; in tool_link_event() local
296 up = ntb_link_is_up(tc->ntb, &speed, &width); in tool_link_event()
298 dev_dbg(&tc->ntb->dev, "link is %s speed %d width %d\n", in tool_link_event()
301 wake_up(&tc->link_wq); in tool_link_event()
306 struct tool_ctx *tc = ctx; in tool_db_event() local
309 db_mask = ntb_db_vector_mask(tc->ntb, vec); in tool_db_event()
[all …]
/Linux-v5.10/drivers/gpu/drm/bridge/
Dtc358767.c285 static inline int tc_poll_timeout(struct tc_data *tc, unsigned int addr, in tc_poll_timeout() argument
292 return regmap_read_poll_timeout(tc->regmap, addr, val, in tc_poll_timeout()
297 static int tc_aux_wait_busy(struct tc_data *tc) in tc_aux_wait_busy() argument
299 return tc_poll_timeout(tc, DP0_AUXSTATUS, AUX_BUSY, 0, 100, 100000); in tc_aux_wait_busy()
302 static int tc_aux_write_data(struct tc_data *tc, const void *data, in tc_aux_write_data() argument
310 ret = regmap_raw_write(tc->regmap, DP0_AUXWDATA(0), auxwdata, count); in tc_aux_write_data()
317 static int tc_aux_read_data(struct tc_data *tc, void *data, size_t size) in tc_aux_read_data() argument
322 ret = regmap_raw_read(tc->regmap, DP0_AUXRDATA(0), auxrdata, count); in tc_aux_read_data()
346 struct tc_data *tc = aux_to_tc(aux); in tc_aux_transfer() local
352 ret = tc_aux_wait_busy(tc); in tc_aux_transfer()
[all …]
/Linux-v5.10/tools/testing/selftests/drivers/net/mlxsw/
Dtc_restrictions.sh41 tc qdisc add dev $swp1 ingress_block 22 clsact
44 tc filter add block 22 protocol ip pref 1 handle 101 flower \
48 tc qdisc add dev $swp2 ingress_block 22 clsact
51 tc qdisc del dev $swp2 clsact
53 tc qdisc add dev $swp2 egress_block 22 clsact
56 tc filter del block 22 protocol ip pref 1 handle 101 flower
58 tc qdisc add dev $swp2 egress_block 22 clsact
61 tc filter add block 22 protocol ip pref 1 handle 101 flower \
65 tc qdisc del dev $swp1 clsact
67 tc qdisc add dev $swp1 egress_block 22 clsact
[all …]
/Linux-v5.10/drivers/misc/
Datmel_tclib.c17 * one of the TC blocks. For simplicity, it doesn't currently expect to
37 * atmel_tc_alloc - allocate a specified TC block
46 struct atmel_tc *tc; in atmel_tc_alloc() local
50 list_for_each_entry(tc, &tc_list, node) { in atmel_tc_alloc()
51 if (tc->allocated) in atmel_tc_alloc()
54 if ((tc->pdev->dev.of_node && tc->id == block) || in atmel_tc_alloc()
55 (tc->pdev->id == block)) { in atmel_tc_alloc()
56 pdev = tc->pdev; in atmel_tc_alloc()
57 tc->allocated = true; in atmel_tc_alloc()
63 return pdev ? tc : NULL; in atmel_tc_alloc()
[all …]
/Linux-v5.10/tools/perf/util/
Dtsc.c16 u64 perf_time_to_tsc(u64 ns, struct perf_tsc_conversion *tc) in perf_time_to_tsc() argument
20 t = ns - tc->time_zero; in perf_time_to_tsc()
21 quot = t / tc->time_mult; in perf_time_to_tsc()
22 rem = t % tc->time_mult; in perf_time_to_tsc()
23 return (quot << tc->time_shift) + in perf_time_to_tsc()
24 (rem << tc->time_shift) / tc->time_mult; in perf_time_to_tsc()
27 u64 tsc_to_perf_time(u64 cyc, struct perf_tsc_conversion *tc) in tsc_to_perf_time() argument
31 if (tc->cap_user_time_short) in tsc_to_perf_time()
32 cyc = tc->time_cycles + in tsc_to_perf_time()
33 ((cyc - tc->time_cycles) & tc->time_mask); in tsc_to_perf_time()
[all …]
/Linux-v5.10/kernel/time/
Dtimecounter.c8 void timecounter_init(struct timecounter *tc, in timecounter_init() argument
12 tc->cc = cc; in timecounter_init()
13 tc->cycle_last = cc->read(cc); in timecounter_init()
14 tc->nsec = start_tstamp; in timecounter_init()
15 tc->mask = (1ULL << cc->shift) - 1; in timecounter_init()
16 tc->frac = 0; in timecounter_init()
22 * @tc: Pointer to time counter
31 static u64 timecounter_read_delta(struct timecounter *tc) in timecounter_read_delta() argument
37 cycle_now = tc->cc->read(tc->cc); in timecounter_read_delta()
40 cycle_delta = (cycle_now - tc->cycle_last) & tc->cc->mask; in timecounter_read_delta()
[all …]

12345678910>>...33