2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

netdev-linux: Initialize rx_compressed, tx_compressed when converting.

rtnl_link_stats64 has rx_compressed and tx_compressed members that
struct netdev_stats lacks, so we need to initialize them to zero when
converting.

Found by valgrind.
This commit is contained in:
Ben Pfaff
2011-05-16 13:22:05 -07:00
parent a7d7906945
commit 7afa4f1d98

View File

@@ -3976,6 +3976,8 @@ netdev_stats_to_rtnl_link_stats64(struct rtnl_link_stats64 *dst,
const struct netdev_stats *src)
{
COPY_NETDEV_STATS;
dst->rx_compressed = 0;
dst->tx_compressed = 0;
}
/* Utility functions. */