macvtap: Do not double-count received packets
authorVlad Yasevich <vyasevic@redhat.com>
Tue, 26 Nov 2013 17:37:12 +0000 (12:37 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Jan 2014 23:27:10 +0000 (15:27 -0800)
commitb4c3eac4fe4e12260614f5d724a3ab8ce21e486a
tree8f6f48ddb4eb854a73b4783e3b575abf9d9b8daf
parent468c82ca655147afc38382e2a184df6c026d2ec5
macvtap: Do not double-count received packets

[ Upstream commit 006da7b07bc4d3a7ffabad17cf639eec6849c9dc ]

Currently macvlan will count received packets after calling each
vlans receive handler.   Macvtap attempts to count the packet
yet again when the user reads the packet from the tap socket.
This code doesn't do this consistently either.  Remove the
counting from macvtap and let only macvlan count received
packets.

Signed-off-by: Vlad Yasevich <vyasevic@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/macvtap.c