]> 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)
commitd79cd5bd435757867720b935659941d1f7217905
treee5765bb618f6808c16708416a15645134402c7ec
parent482217b9442c796f26f5acd691f4b3c6fdca906c
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