MCPcopy Create free account
hub / github.com/F-Stack/f-stack / mvneta_stats_reset

Function mvneta_stats_reset

dpdk/drivers/net/mvneta/mvneta_ethdev.c:758–772  ·  view source on GitHub ↗

* DPDK callback to clear device statistics. * * @param dev * Pointer to Ethernet device structure. * * @return * 0 on success, negative error value otherwise. */

Source from the content-addressed store, hash-verified

756 * 0 on success, negative error value otherwise.
757 */
758static int
759mvneta_stats_reset(struct rte_eth_dev *dev)
760{
761 struct mvneta_priv *priv = dev->data->dev_private;
762 unsigned int ret;
763
764 if (!priv->ppio)
765 return 0;
766
767 ret = mvneta_stats_get(dev, &priv->prev_stats);
768 if (unlikely(ret))
769 MVNETA_LOG(ERR, "Failed to reset port statistics");
770
771 return ret;
772}
773
774
775static const struct eth_dev_ops mvneta_ops = {

Callers 1

mvneta_dev_startFunction · 0.85

Calls 1

mvneta_stats_getFunction · 0.85

Tested by

no test coverage detected