天天看點

dpdk 網卡統計問題

1)調用接口int rte_eth_stats_get(uint8_t port_id, struct rte_eth_stats *stats);擷取統計資訊; 寄存器是讀清0操作。 2)ethtool 擷取網卡統計也會讀清0操作。ethtool 操作會引起web顯示資料偏小。 rte_eth_stats_get在周期性進行操作,是以ethtool看到的統計很小,是正常的。

繼續閱讀