ip_tunnel: Report Rx dropped in ip_tunnel_get_stats64
authorAlexander Duyck <alexander.h.duyck@redhat.com>
Thu, 14 May 2015 21:31:28 +0000 (14:31 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 May 2015 02:30:54 +0000 (22:30 -0400)
commitc24a59649f3c8f4f78adc2d0e31423fa883b012b
tree84ab803b6f882074ea8e20fa81020e83e86c6f76
parent54d7c01d3ed699cfc213115eaecfe1175cfaff8f
ip_tunnel: Report Rx dropped in ip_tunnel_get_stats64

The rx_dropped stat wasn't being reported when ip_tunnel_get_stats64 was
called.  This was leading to some confusing results in my debug as I was
seeing rx_errors increment but no other value which pointed me toward the
type of error being seen.

This change corrects that by using netdev_stats_to_stats64 to copy all
available dev stats instead of just the few that were hand picked.

Signed-off-by: Alexander Duyck <alexander.h.duyck@redhat.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_tunnel_core.c