func convertInterfaceStats(stats *info.InterfaceStats) { net := stats // Ingress for host veth is from the container. // Hence tx_bytes stat on the host veth is actually number of bytes received by the container. stats.RxBytes = net.TxBytes stats.RxPackets = net.TxPackets stats.RxErrors = net.TxErrors stats.RxDropped = net.TxDropped stats.TxBytes = net.RxBytes stats.TxPackets = net.RxPackets stats.TxErrors = net.RxErrors stats.TxDropped = net.RxDropped }