[PATCH v3 19/19] net/xsc: add dev basic stats ops
Stephen Hemminger
stephen at networkplumber.org
Thu Sep 19 21:04:17 CEST 2024
On Wed, 18 Sep 2024 14:09:36 +0800
"WanRenyong" <wanry at yunsilicon.com> wrote:
>
> +static int
> +xsc_ethdev_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats)
> +{
> + struct xsc_ethdev_priv *priv = TO_XSC_ETHDEV_PRIV(dev);
> + uint32_t rxqs_n = priv->num_rq;
> + uint32_t txqs_n = priv->num_sq;
> + uint32_t i, idx;
> + struct xsc_rxq_data *rxq;
> + struct xsc_txq_data *txq;
> +
> + memset(stats, 0, sizeof(struct rte_eth_stats));
Memset here is unnecessary already done in ethdev.
More information about the dev
mailing list