From: Giuseppe Lettieri Date: Wed, 3 Oct 2012 16:23:52 +0000 (+0200) Subject: fix wrong count of sent bytes in tunnels X-Git-Tag: sliver-openvswitch-1.8.90-5~26 X-Git-Url: http://git.onelab.eu/?p=sliver-openvswitch.git;a=commitdiff_plain;h=6b66a4abaf9336dcaa11f2fba1ceb7efabed0b7f fix wrong count of sent bytes in tunnels --- diff --git a/lib/netdev-tunnel.c b/lib/netdev-tunnel.c index dec5cf86a..91220a6c0 100644 --- a/lib/netdev-tunnel.c +++ b/lib/netdev-tunnel.c @@ -286,7 +286,7 @@ netdev_tunnel_send(struct netdev *netdev_, const void *buffer, size_t size) netdev_get_name(netdev_), (uintptr_t)buffer, size, retval); if (retval >= 0) { dev->stats.tx_packets++; - dev->stats.tx_bytes++; + dev->stats.tx_bytes += retval; if (retval != size) { VLOG_WARN_RL(&rl, "sent partial Ethernet packet (%"PRId64" bytes of " "%"PRIu64") on %s", retval, size, netdev_get_name(netdev_));