On 2024/9/20 3:04, Stephen Hemminger wrote:
> On Wed, 18 Sep 2024 14:09:36 +0800
> "WanRenyong" <wa...@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.
Thanks for review, will fix it in the next version.

-- 
Thanks,
WanRenyong

Reply via email to