Home
last modified time | relevance | path

Searched refs:next_tstamp (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtest_tc_edt.c34 uint64_t tstamp, next_tstamp = 0; in throttle_flow() local
37 next_tstamp = *last_tstamp + delay_ns; in throttle_flow()
44 if (next_tstamp <= tstamp) { in throttle_flow()
51 if (next_tstamp - now >= TIME_HORIZON_NS) in throttle_flow()
55 if (next_tstamp - now >= ECN_HORIZON_NS) in throttle_flow()
58 if (bpf_map_update_elem(&flow_map, &key, &next_tstamp, BPF_EXIST)) in throttle_flow()
60 skb->tstamp = next_tstamp; in throttle_flow()