[PATCH] net/vhost: report TX errors in port stats

2023-09-29 Thread Andrey Ignatov
14592 Signed-off-by: Andrey Ignatov --- drivers/net/vhost/rte_eth_vhost.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/vhost/rte_eth_vhost.c b/drivers/net/vhost/rte_eth_vhost.c index 8d37ec9775..48a9a79efe 100644 --- a/drivers/net/vhost/rte_eth_vhost.c +++ b/drivers/net/

[PATCH] vhost: optimize mbuf allocation in virtio Tx packed path

2024-03-28 Thread Andrey Ignatov
+ 12.00% common_fwd_stream_transmit It can be seen that virtio_dev_tx_packed_compliant() goes from 71.48% to 55.98% with rte_pktmbuf_alloc_bulk() going from 17.11% to 3.43% and rte_pktmbuf_free_bulk() going away completely. Signed-off-by: Andrey Ignatov --- lib/vhost/virtio_net.c | 33

Re: [PATCH] vhost: optimize mbuf allocation in virtio Tx packed path

2024-03-28 Thread Andrey Ignatov
On Thu, Mar 28, 2024 at 04:44:26PM -0700, Stephen Hemminger wrote: > On Thu, 28 Mar 2024 16:33:38 -0700 > Andrey Ignatov wrote: > > > > > +static __rte_always_inline uint16_t > > +get_nb_avail_entries_packed(const struct vhost_virtqu