diff options
author | Yunjian Wang <wangyunjian@huawei.com> | 2024-01-19 18:22:56 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-01-22 10:58:04 +0000 |
commit | f1084c427f55d573fcd5688d9ba7b31b78019716 (patch) | |
tree | 93fff71a9c972aa9dd4ef5a49fdeb7ab7bf788a1 /drivers/pwm/pwm-stmpe.c | |
parent | 5744ba05e7c4bff8fec133dd0f9e51ddffba92f5 (diff) | |
download | linux-f1084c427f55d573fcd5688d9ba7b31b78019716.tar.gz linux-f1084c427f55d573fcd5688d9ba7b31b78019716.tar.bz2 linux-f1084c427f55d573fcd5688d9ba7b31b78019716.zip |
tun: add missing rx stats accounting in tun_xdp_act
The TUN can be used as vhost-net backend, and it is necessary to
count the packets transmitted from TUN to vhost-net/virtio-net.
However, there are some places in the receive path that were not
taken into account when using XDP. It would be beneficial to also
include new accounting for successfully received bytes using
dev_sw_netstats_rx_add.
Fixes: 761876c857cb ("tap: XDP support")
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/pwm/pwm-stmpe.c')
0 files changed, 0 insertions, 0 deletions