]> git.baikalelectronics.ru Git - kernel.git/commit
virtio_net: fix rx_drops stat for small pkts
authorWenliang Wang <wangwenliang.1995@bytedance.com>
Thu, 16 Dec 2021 03:11:35 +0000 (11:11 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 Dec 2021 11:07:19 +0000 (11:07 +0000)
commit5659007330a36a4681b576900e7bb099e24014ff
treed1e3961814cccbc09374ed6e88ab1e5143f38d2c
parentba999f7082d4115e32641468c78c8de19dcf9fa8
virtio_net: fix rx_drops stat for small pkts

We found the stat of rx drops for small pkts does not increment when
build_skb fail, it's not coherent with other mode's rx drops stat.

Signed-off-by: Wenliang Wang <wangwenliang.1995@bytedance.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c