[dpdk-dev] [PATCH v4 2/4] vhost: dynamically allocate async memory
Maxime Coquelin
maxime.coquelin at redhat.com
Wed Oct 14 11:30:55 CEST 2020
On 10/13/20 3:45 AM, Patrick Fu wrote:
> Allocate async internal memory buffer by rte_malloc(), replacing array
> declaration inside vq structure. Dynamic allocation can help to save
> memory footprint when async path is not registered.
>
> Signed-off-by: Patrick Fu <patrick.fu at intel.com>
> ---
> lib/librte_vhost/vhost.c | 69 ++++++++++++++++++++++++++--------------
> lib/librte_vhost/vhost.h | 4 +--
> 2 files changed, 47 insertions(+), 26 deletions(-)
>
Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>
Thanks,
Maxime
More information about the dev
mailing list