]> git.baikalelectronics.ru Git - kernel.git/commit
macvtap: Do not double-count received packets
authorVlad Yasevich <vyasevic@redhat.com>
Tue, 26 Nov 2013 17:37:12 +0000 (12:37 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Nov 2013 21:07:08 +0000 (16:07 -0500)
commit36692395ae9562b985f86e2790e9b60e6efafb76
tree05d54631c14c7b6d3c02acc0e6296145949c88cb
parent6c07f6520ae9935360b355a5c91afd1bbd56a339
macvtap: Do not double-count received packets

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>
drivers/net/macvtap.c