macvtap: fix tx_dropped counting error
authorJason Wang <jasowang@redhat.com>
Mon, 25 Nov 2013 09:19:04 +0000 (17:19 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Nov 2013 23:32:22 +0000 (18:32 -0500)
commitcd3e22b75c01fe1e075d91504b29019a05d8d373
treee5765bb618f6808c16708416a15645134402c7ec
parent167f76a87743dfaf1fec954db5233715ddad49ef
macvtap: fix tx_dropped counting error

After commit 8ffab51b3dfc54876f145f15b351c41f3f703195
(macvlan: lockless tx path), tx stat counter were converted to percpu stat
structure. So we need use to this also for tx_dropped in macvtap. Otherwise, the
management won't notice the dropping packet in macvtap tx path.

Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: Vlad Yasevich <vyasevic@redhat.com>
Cc: Eric Dumazet <edumazet@google.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Vlad Yasevich <vyasevic@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macvtap.c