git://git.onelab.eu
/
sliver-openvswitch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eeec419
)
fix wrong count of sent bytes in tunnels
author
Giuseppe Lettieri
<g.lettieri@iet.unipi.it>
Wed, 3 Oct 2012 16:23:52 +0000
(18:23 +0200)
committer
Giuseppe Lettieri
<g.lettieri@iet.unipi.it>
Wed, 3 Oct 2012 16:23:52 +0000
(18:23 +0200)
lib/netdev-tunnel.c
patch
|
blob
|
history
diff --git
a/lib/netdev-tunnel.c
b/lib/netdev-tunnel.c
index
dec5cf8
..
91220a6
100644
(file)
--- 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_));