[PATCH 2/2] net/gve: add standard and extended statistics

Stephen Hemminger stephen at networkplumber.org
Fri Feb 10 17:34:57 CET 2023


On Fri, 10 Feb 2023 16:06:06 +0300
Levend Sayar <levendsayar at gmail.com> wrote:

> +gve_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats)
> +{
> +	uint16_t i;
> +	struct rte_eth_stats tmp;
> +
> +	memset(&tmp, 0, sizeof(tmp))

Why do you need tmp?
The stats pointer passed in is already available and zeroed.


More information about the dev mailing list