[dpdk-dev] [RFC PATCH 3/3] net/pcap: support hardware Tx timestamps

Stephen Hemminger stephen at networkplumber.org
Tue Jun 30 16:59:22 CEST 2020


On Thu, 25 Jun 2020 15:01:19 -0400
Vivien Didelot <vivien.didelot at gmail.com> wrote:

> +		struct timeval cur_time = {
> +			.tv_sec = cycles / hz,
> +			.tv_usec = (cycles % hz) * NSEC_PER_SEC / hz,

This is hot path, use rte_reciprocal_divide rather than slow divide instruction.


More information about the dev mailing list