]> 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)
commite0b25420567c0ee6a27b81c6bceb8109748ea753
treed1e3961814cccbc09374ed6e88ab1e5143f38d2c
parent41728673e6efdcb3ac3a31d03b785ba50caaf375
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