Home
last modified time | relevance | path

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

/f-stack/dpdk/examples/qos_sched/
H A Dapp_thread.c161 const uint64_t drain_tsc = (rte_get_tsc_hz() + US_PER_S - 1) / US_PER_S * BURST_TX_DRAIN_US; in app_tx_thread() local
175 if (unlikely(conf->counter > drain_tsc)) { in app_tx_thread()
233 const uint64_t drain_tsc = (rte_get_tsc_hz() + US_PER_S - 1) / US_PER_S * BURST_TX_DRAIN_US; in app_mixed_thread() local
261 if (unlikely(conf->counter > drain_tsc)) { in app_mixed_thread()
/f-stack/dpdk/examples/l2fwd-event/
H A Dl2fwd_poll.c31 uint64_t prev_tsc, diff_tsc, cur_tsc, drain_tsc; in l2fwd_poll_main_loop() local
41 drain_tsc = (rte_get_tsc_hz() + US_PER_S - 1) / US_PER_S * in l2fwd_poll_main_loop()
70 if (unlikely(diff_tsc > drain_tsc)) { in l2fwd_poll_main_loop()
/f-stack/dpdk/examples/l2fwd-jobstats/
H A Dmain.c116 uint64_t drain_tsc; variable
459 qconf->next_flush_time[portid] = rte_get_timer_cycles() + drain_tsc; in l2fwd_flush_job()
958 drain_tsc = (hz + US_PER_S - 1) / US_PER_S * BURST_TX_DRAIN_US; in main()
977 rte_jobstats_init(&qconf->flush_job, "flush", drain_tsc, drain_tsc, in main()
978 drain_tsc, 0); in main()
981 ret = rte_timer_reset(&qconf->flush_timer, drain_tsc, PERIODICAL, in main()
999 rte_jobstats_init(job, name, 0, drain_tsc, 0, MAX_PKT_BURST); in main()
/f-stack/dpdk/doc/guides/sample_app_ug/
H A Dl2_forward_job_stats.rst299 rte_jobstats_init(&qconf->flush_job, "flush", drain_tsc, drain_tsc,
300 drain_tsc, 0);
303 ret = rte_timer_reset(&qconf->flush_timer, drain_tsc, PERIODICAL,
315 rte_jobstats_init(job, name, 0, drain_tsc, 0, MAX_PKT_BURST);
331 * drain_tsc as maximum poll period
H A Dlink_status_intr.rst382 if (unlikely(diff_tsc > drain_tsc)) {
H A Dl2_forward_real_virtual.rst436 if (unlikely(diff_tsc > drain_tsc)) {
H A Dl2_forward_event.rst616 if (unlikely(diff_tsc > drain_tsc)) {
/f-stack/dpdk/examples/l3fwd-power/
H A Dmain.c924 const uint64_t drain_tsc = (rte_get_tsc_hz() + US_PER_S - 1) / in main_intr_loop() local
964 if (unlikely(diff_tsc > drain_tsc)) { in main_intr_loop()
1089 const uint64_t drain_tsc = (rte_get_tsc_hz() + US_PER_S - 1) / in main_telemetry_loop() local
1122 if (unlikely(diff_tsc > drain_tsc)) { in main_telemetry_loop()
1206 const uint64_t drain_tsc = in main_empty_poll_loop() local
1236 if (unlikely(diff_tsc > drain_tsc)) { in main_empty_poll_loop()
1315 const uint64_t drain_tsc = (rte_get_tsc_hz() + US_PER_S - 1) / US_PER_S * BURST_TX_DRAIN_US; in main_legacy_loop() local
1354 if (unlikely(diff_tsc > drain_tsc)) { in main_legacy_loop()
/f-stack/dpdk/examples/link_status_interrupt/
H A Dmain.c204 const uint64_t drain_tsc = (rte_get_tsc_hz() + US_PER_S - 1) / US_PER_S * in lsi_main_loop() local
236 if (unlikely(diff_tsc > drain_tsc)) { in lsi_main_loop()
/f-stack/dpdk/examples/l3fwd/
H A Dl3fwd_lpm.c185 const uint64_t drain_tsc = (rte_get_tsc_hz() + US_PER_S - 1) / in lpm_main_loop() local
217 if (unlikely(diff_tsc > drain_tsc)) { in lpm_main_loop()
H A Dl3fwd_em.c629 const uint64_t drain_tsc = (rte_get_tsc_hz() + US_PER_S - 1) / in em_main_loop() local
661 if (unlikely(diff_tsc > drain_tsc)) { in em_main_loop()
/f-stack/dpdk/examples/ipv4_multicast/
H A Dmain.c365 const uint64_t drain_tsc = (rte_get_tsc_hz() + US_PER_S - 1) / US_PER_S * BURST_TX_DRAIN_US; in send_timeout_burst() local
368 if (likely (cur_tsc < qconf->tx_tsc + drain_tsc)) in send_timeout_burst()
/f-stack/dpdk/examples/l2fwd-keepalive/
H A Dmain.c203 const uint64_t drain_tsc = (rte_get_tsc_hz() + US_PER_S - 1) in l2fwd_main_loop() local
246 if (unlikely(diff_tsc > drain_tsc)) { in l2fwd_main_loop()
/f-stack/dpdk/examples/l2fwd/
H A Dmain.c208 const uint64_t drain_tsc = (rte_get_tsc_hz() + US_PER_S - 1) / US_PER_S * in l2fwd_main_loop() local
241 if (unlikely(diff_tsc > drain_tsc)) { in l2fwd_main_loop()
/f-stack/dpdk/examples/ip_fragmentation/
H A Dmain.c393 const uint64_t drain_tsc = (rte_get_tsc_hz() + US_PER_S - 1) / US_PER_S * BURST_TX_DRAIN_US; in main_loop() local
422 if (unlikely(diff_tsc > drain_tsc)) { in main_loop()
/f-stack/lib/
H A Dff_dpdk_if.c1829 uint64_t drain_tsc = 0; local
1833 drain_tsc = (rte_get_tsc_hz() + US_PER_S - 1) / US_PER_S * pkt_tx_delay;
1856 if (unlikely(diff_tsc >= drain_tsc)) {
1919 if (likely(lr->loop != NULL && (!idle || cur_tsc - usch_tsc >= drain_tsc))) {
/f-stack/dpdk/examples/ip_reassembly/
H A Dmain.c431 const uint64_t drain_tsc = (rte_get_tsc_hz() + US_PER_S - 1) / US_PER_S * BURST_TX_DRAIN_US; in main_loop() local
460 if (unlikely(diff_tsc > drain_tsc)) { in main_loop()
/f-stack/dpdk/examples/l3fwd-acl/
H A Dmain.c1427 const uint64_t drain_tsc = (rte_get_tsc_hz() + US_PER_S - 1) in main_loop() local
1459 if (unlikely(diff_tsc > drain_tsc)) { in main_loop()
/f-stack/dpdk/examples/l2fwd-crypto/
H A Dmain.c700 const uint64_t drain_tsc = (rte_get_tsc_hz() + US_PER_S - 1) / in l2fwd_main_loop() local
849 if (unlikely(diff_tsc > drain_tsc)) { in l2fwd_main_loop()
/f-stack/dpdk/examples/ipsec-secgw/
H A Dipsec-secgw.c1163 const uint64_t drain_tsc = (rte_get_tsc_hz() + US_PER_S - 1) in ipsec_poll_mode_worker() local
1222 if (unlikely(diff_tsc > drain_tsc)) { in ipsec_poll_mode_worker()
/f-stack/dpdk/examples/performance-thread/l3fwd-thread/
H A Dmain.c2316 const uint64_t drain_tsc = (rte_get_tsc_hz() + US_PER_S - 1) / in pthread_tx() local
2335 if (unlikely(diff_tsc > drain_tsc)) { in pthread_tx()