]> git.dujemihanovic.xyz Git - linux.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)
commit053c9e18c6f9cf82242ef35ac21cae1842725714
treed1e3961814cccbc09374ed6e88ab1e5143f38d2c
parente08cdf63049b711099efff0811273449083bb958
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