MCPcopy Create free account
hub / github.com/F-Stack/f-stack / init_port_ts

Function init_port_ts

dpdk/app/test/test_red.c:122–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120static double pkt_time_usec = 0;
121
122static void init_port_ts(uint64_t cpu_clock)
123{
124 double cycles_per_byte = (double)(cpu_clock) / (double)(port_speed_bytes);
125 inv_cycles_per_byte = 1.0 / cycles_per_byte;
126 pkt_time_usec = 1000000.0 / ((double)port_speed_bytes / (double)RTE_RED_S);
127}
128
129static uint64_t get_port_ts(void)
130{

Callers 1

test_rte_red_initFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected