[RFC v2] net/af_packet: make stats reset reliable

Morten Brørup mb at smartsharesystems.com
Fri Apr 26 16:47:17 CEST 2024


> +static uint64_t
> +stats_get_diff(uint64_t stats, uint64_t offset)
> +{
> +	return stats - offset;
> +}

No need for this function; just subtract inline instead.

With the suggested change,
Reviewed-by: Morten Brørup <mb at smartsharesystems.com>



More information about the dev mailing list