Home
last modified time | relevance | path

Searched refs:now (Results 1 – 25 of 75) sorted by relevance

123

/dpdk/lib/eal/freebsd/
H A Deal_alarm.c90 if (now->tv_sec < at->tv_sec) in timespec_cmp()
92 if (now->tv_sec > at->tv_sec) in timespec_cmp()
94 if (now->tv_nsec < at->tv_nsec) in timespec_cmp()
96 if (now->tv_nsec > at->tv_nsec) in timespec_cmp()
106 if (timespec_cmp(now, at) >= 0) in diff_ns()
109 now_ns = now->tv_sec * NS_PER_S + now->tv_nsec; in diff_ns()
119 struct timespec now; in eal_alarm_get_timeout_ns() local
129 *val = diff_ns(&now, &ap->time); in eal_alarm_get_timeout_ns()
171 struct timespec now; in eal_alarm_callback() local
206 struct timespec now; in rte_eal_alarm_set() local
[all …]
/dpdk/lib/jobstats/
H A Drte_jobstats.c83 uint64_t now; in rte_jobstats_context_start() local
87 now = get_time(); in rte_jobstats_context_start()
89 ctx->state_time = now; in rte_jobstats_context_start()
95 uint64_t now; in rte_jobstats_context_finish() local
100 now = get_time(); in rte_jobstats_context_finish()
102 ctx->state_time = now; in rte_jobstats_context_finish()
125 uint64_t now; in rte_jobstats_start() local
134 now = get_time(); in rte_jobstats_start()
136 ctx->state_time = now; in rte_jobstats_start()
152 now = get_time(); in rte_jobstats_abort()
[all …]
/dpdk/lib/eal/linux/
H A Deal_alarm.c91 struct timespec now; in eal_alarm_callback() local
96 clock_gettime(CLOCK_TYPE_ID, &now) == 0 && in eal_alarm_callback()
97 (ap->time.tv_sec < now.tv_sec || (ap->time.tv_sec == now.tv_sec && in eal_alarm_callback()
98 (ap->time.tv_usec * NS_PER_US) <= now.tv_nsec))) { in eal_alarm_callback()
118 if (now.tv_nsec > (ap->time.tv_usec * NS_PER_US)) in eal_alarm_callback()
121 atime.it_value.tv_sec -= now.tv_sec; in eal_alarm_callback()
122 atime.it_value.tv_nsec -= now.tv_nsec; in eal_alarm_callback()
131 struct timespec now; in rte_eal_alarm_set() local
144 clock_gettime(CLOCK_TYPE_ID, &now); in rte_eal_alarm_set()
148 new_alarm->time.tv_usec = ((now.tv_nsec / NS_PER_US) + us) % US_PER_S; in rte_eal_alarm_set()
[all …]
/dpdk/lib/latencystats/
H A Drte_latencystats.c127 uint64_t diff_tsc, now; in add_time_stamps() local
133 now = rte_rdtsc(); in add_time_stamps()
135 diff_tsc = now - prev_tsc; in add_time_stamps()
140 *timestamp_dynfield(pkts[i]) = now; in add_time_stamps()
144 prev_tsc = now; in add_time_stamps()
145 now = rte_rdtsc(); in add_time_stamps()
159 uint64_t now; in calc_latency() local
169 now = rte_rdtsc(); in calc_latency()
172 latency[cnt++] = now - *timestamp_dynfield(pkts[i]); in calc_latency()
/dpdk/lib/eal/windows/include/
H A Drte_os_shim.h55 rte_timespec_get(struct timespec *now, int base) in rte_timespec_get() argument
71 now->tv_sec = ticks / TICKS_PER_SEC; in rte_timespec_get()
72 now->tv_nsec = (ticks - now->tv_sec * TICKS_PER_SEC) * NS_PER_TICK; in rte_timespec_get()
/dpdk/drivers/event/dsw/
H A Ddsw_event.c137 busy_cycles += (now - port->busy_start); in dsw_port_load_close_period()
138 port->busy_start = now; in dsw_port_load_close_period()
143 port->measurement_start = now; in dsw_port_load_close_period()
176 if (now < port->next_load_update) in dsw_port_consider_load_update()
181 dsw_port_load_update(port, now); in dsw_port_consider_load_update()
813 uint64_t now) in dsw_port_consider_emigration() argument
823 if (now < source_port->next_emigration) in dsw_port_consider_emigration()
838 source_port->next_emigration = now + in dsw_port_consider_emigration()
1124 uint64_t now; in dsw_port_bg_process() local
1126 now = rte_get_timer_cycles(); in dsw_port_bg_process()
[all …]
H A Ddsw_evdev.c273 uint64_t now; in dsw_start() local
279 now = rte_get_timer_cycles(); in dsw_start()
281 dsw->ports[i].measurement_start = now; in dsw_start()
282 dsw->ports[i].busy_start = now; in dsw_start()
/dpdk/lib/eal/freebsd/include/
H A Drte_os_shim.h21 rte_timespec_get(struct timespec *now, int base) in rte_timespec_get() argument
23 if (base != TIME_UTC || clock_gettime(CLOCK_REALTIME, now) < 0) in rte_timespec_get()
/dpdk/app/test-pmd/
H A Dnoisy_vnf.c153 uint64_t now; in pkt_burst_noisy_vnf() local
202 now = ncf->prev_time = rte_get_timer_cycles(); in pkt_burst_noisy_vnf()
204 now = rte_get_timer_cycles(); in pkt_burst_noisy_vnf()
205 delta_ms = (now - ncf->prev_time) / freq_khz; in pkt_burst_noisy_vnf()
/dpdk/lib/eal/common/
H A Deal_common_proc.c437 timeout = timespec_cmp(&param->end, now) <= 0; in process_async_request()
988 struct timespec now, end; in rte_mp_request_sync() local
1007 if (clock_gettime(CLOCK_MONOTONIC, &now) < 0) { in rte_mp_request_sync()
1013 end.tv_nsec = (now.tv_nsec + ts->tv_nsec) % 1000000000; in rte_mp_request_sync()
1014 end.tv_sec = now.tv_sec + ts->tv_sec + in rte_mp_request_sync()
1015 (now.tv_nsec + ts->tv_nsec) / 1000000000; in rte_mp_request_sync()
1089 struct timespec now; in rte_mp_request_async() local
1106 if (clock_gettime(CLOCK_MONOTONIC, &now) < 0) { in rte_mp_request_async()
1128 end->tv_nsec = (now.tv_nsec + ts->tv_nsec) % 1000000000; in rte_mp_request_async()
1129 end->tv_sec = now.tv_sec + ts->tv_sec + in rte_mp_request_async()
[all …]
H A Dmalloc_mp.c702 struct timeval now; in request_to_primary() local
718 if (gettimeofday(&now, NULL) < 0) { in request_to_primary()
723 ts.tv_nsec = (now.tv_usec * 1000) % 1000000000; in request_to_primary()
724 ts.tv_sec = now.tv_sec + MP_TIMEOUT_S + in request_to_primary()
725 (now.tv_usec * 1000) / 1000000000; in request_to_primary()
/dpdk/examples/rxtx_callbacks/
H A Dmain.c61 uint64_t now = rte_rdtsc(); in add_timestamps() local
64 *tsc_field(pkts[i]) = now; in add_timestamps()
76 uint64_t now = rte_rdtsc(); in calc_latency() local
84 cycles += now - *tsc_field(pkts[i]); in calc_latency()
/dpdk/app/dumpcap/
H A Dmain.c413 struct timespec now; in create_timestamp() local
415 clock_gettime(CLOCK_MONOTONIC, &now); in create_timestamp()
416 return rte_timespec_to_ns(&now); in create_timestamp()
616 time_t now; in create_output() local
620 now = time(NULL); in create_output()
621 tm = localtime(&now); in create_output()
/dpdk/drivers/net/ena/base/
H A Dena_plat_dpdk.h166 struct timeval now; \
168 gettimeofday(&now, NULL); \
169 wait.tv_sec = now.tv_sec + _tmo / 1000000UL; \
171 wait.tv_nsec = (now.tv_usec + timeout_us) * 1000UL; \
/dpdk/examples/l2fwd-jobstats/
H A Dmain.c440 uint64_t now; in l2fwd_flush_job() local
453 now = rte_get_timer_cycles(); in l2fwd_flush_job()
460 if (qconf->next_flush_time[portid] <= now) in l2fwd_flush_job()
523 uint64_t now = rte_get_timer_cycles(); in l2fwd_main_loop() local
526 need_manage = qconf->flush_timer.expire < now; in l2fwd_main_loop()
533 need_manage = qconf->rx_timers[i].expire < now; in l2fwd_main_loop()
/dpdk/drivers/net/hinic/base/
H A Dhinic_compat.h188 #define time_before(now, end) ((now) < (end)) argument
/dpdk/doc/guides/freebsd_gsg/
H A Dintro.rst19 DPDK is now available as part of the FreeBSD ports collection and as a pre-built package.
20 Installing via the ports collection or FreeBSD `pkg` infrastructure is now the recommended
/dpdk/doc/guides/rel_notes/
H A Drelease_18_05.rst37 * ``-m`` and ``--socket-mem`` command-line arguments now carry an additional
74 Applications can now query drivers for device-tuned values of
302 on Eth devices (right now only via SW RX/TX callbacks).
318 This function now returns true or false, respectively,
382 now use the PMD-recommended Rx ring size, or in the case where the PMD
390 now use the PMD-recommended Tx ring size, or in the case where the PMD
398 * Actions semantics in flow rules: list order now matters ("first
399 to last" instead of "all simultaneously"), repeated actions are now
402 * Flow rules are now always terminating unless a ``PASSTHRU`` action is
420 * PF and VF pattern items are now only accepted by PMDs that implement
[all …]
H A Drelease_18_11.rst20 memory is not out of the device range. Since memory can now be allocated
82 The ``netvsc`` poll mode driver now supports the Accelerated Networking
164 The Softnic is now capable of processing symmetric crypto workloads such
264 is now set to ``off``, so the interfaces cannot be used until the
312 * eal: ``rte_memseg_list`` structure now has an additional flag indicating
314 for any users of memseg-walk-related functions, as they will now have to skip
319 additional meaning, as some socket ID's will now be representing externally
401 - Structure ``rte_memseg_list`` now has a new field indicating length
403 - Structure ``rte_memseg_list`` now has a new flag indicating whether
405 - Structure ``rte_malloc_heap`` now has a new field indicating socket
[all …]
H A Drelease_21_08.rst20 Using ``rte_firmware_read`` a driver can now handle XZ compressed firmware
103 The ISAL compress device PMD now supports Arm platforms.
124 The experimental PMD power management API now supports managing
139 * eal: ``rte_bsf32_safe`` now takes a 32-bit value for its first argument.
147 to be thread safe; all Rx queues affected by the API will now need to be
H A Drelease_16_04.rst24 The structure ``rte_eth_dev_info`` now has a ``speed_capa`` bitmap, which
158 is now deprecated.
211 Until now, CRC was always stripped. It can now be configured.
240 An af_packet device can now be detached using the API, like other PMD devices.
322 The driver now set the MDIO clock speed prior to initializing PHY ops and
447 All drivers are now counting the missed packets only once, i.e. drivers will
H A Drelease_19_02.rst45 * The reset routine was aligned with the DPDK API, so now it can be
146 the intel_pstate kernel driver is now supported, and automatically
158 * eal: Segment fd API on Linux now sets error code to ``ENOTSUP`` in more cases
185 introduced. This function is now mandatory when creating symmetric session
187 function from now on. Failed to do so will cause a
/dpdk/drivers/event/octeontx/
H A Dtimvf_evdev.c67 timvf_get_start_cyc(uint64_t *now, uint8_t ring_id) in timvf_get_start_cyc() argument
74 *now = 0; in timvf_get_start_cyc()
75 return octeontx_mbox_send(&hdr, NULL, 0, now, sizeof(uint64_t)); in timvf_get_start_cyc()
/dpdk/drivers/common/dpaax/
H A Dcompat.h206 uint64_t now = mfatb(); in cpu_spin() local
208 while (mfatb() < (now + cycles)) in cpu_spin()
/dpdk/kernel/freebsd/
H A Dmeson.build9 # right now, which allows us to simplify things. We pull in the sourcer

123