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

Stephen Hemminger stephen at networkplumber.org
Fri Mar 29 00:44:26 CET 2024


On Thu, 28 Mar 2024 16:33:38 -0700
Andrey Ignatov <rdna at apple.com> wrote:

>  
> +static __rte_always_inline uint16_t
> +get_nb_avail_entries_packed(const struct vhost_virtqueue *__rte_restrict vq,
> +			    uint16_t max_nb_avail_entries)
> +{

You don't need always inline, the compiler will do it anyway.


More information about the dev mailing list