Signed-off-by: Pravin B Shelar <[email protected]>
---
datapath/vport.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/datapath/vport.c b/datapath/vport.c
index 6fe6042..b8eecf8 100644
--- a/datapath/vport.c
+++ b/datapath/vport.c
@@ -465,7 +465,7 @@ int vport_send(struct vport *vport, struct sk_buff *skb)
stats = per_cpu_ptr(vport->percpu_stats, smp_processor_id());
write_seqcount_begin(&stats->seqlock);
- stats->tx_packets++;
+ stats->tx_packets += (sent != 0);
stats->tx_bytes += sent;
write_seqcount_end(&stats->seqlock);
--
1.7.1
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev