net/vhost: merge stats loop in datapath
authorGaoxiang Liu <liugaoxiang@huawei.com>
Sun, 17 Oct 2021 23:19:52 +0000 (07:19 +0800)
committerMaxime Coquelin <maxime.coquelin@redhat.com>
Thu, 21 Oct 2021 12:24:21 +0000 (14:24 +0200)
commit028f06e8be8a338c2bf875c8d8935df89ce8f44c
tree5b7e61375cbead41a7bd8e5bbf6092cfd8e9d54e
parent7c61fa08b716babcbb7d1375f6aa8b0ef644e9ae
net/vhost: merge stats loop in datapath

To improve performance in vhost Tx/Rx, merge vhost stats loop.
eth_vhost_tx has 2 loop of send num iteraion.
It can be merge into one.
eth_vhost_rx has the same issue as Tx.

Signed-off-by: Gaoxiang Liu <liugaoxiang@huawei.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/vhost/rte_eth_vhost.c