From 7afa4f1d98d26066c66572f5af3d433ae9d18bb9 Mon Sep 17 00:00:00 2001
From: Ben Pfaff <blp@nicira.com>
Date: Mon, 16 May 2011 13:22:05 -0700
Subject: [PATCH] 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.
---
 lib/netdev-linux.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/netdev-linux.c b/lib/netdev-linux.c
index 5f13f18a..c41b19d6 100644
--- a/lib/netdev-linux.c
+++ b/lib/netdev-linux.c
@@ -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. */
-- 
2.30.2