]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit95db4e5c08521793378a7571dc8e60f070fe01b1
treee5765bb618f6808c16708416a15645134402c7ec
parent0a97e125f6d7cf265293bb2b48b2286e792457cc
macvtap: fix tx_dropped counting error

After commit d45627f6f3681d48db5c95efb9c6c7e703554f0c
(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