[PATCH v2 49/68] net/vhost: replace use of rte_memcpy

Bruce Richardson bruce.richardson at intel.com
Fri Sep 11 11:58:27 CEST 2026


On Fri, Aug 21, 2026 at 12:24:44PM -0700, Stephen Hemminger wrote:
> Don't need rte_memcpy for fixed size value.
> 
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
> ---
>  drivers/net/vhost/rte_eth_vhost.c | 1 -
>  1 file changed, 1 deletion(-)
> 

Change is correct, but patch needs different title and commit log, since
you are removing an unnecessary header here, not removing rte_memcpy use
itself.

> diff --git a/drivers/net/vhost/rte_eth_vhost.c b/drivers/net/vhost/rte_eth_vhost.c
> index 05940f2461..97d60ecf5d 100644
> --- a/drivers/net/vhost/rte_eth_vhost.c
> +++ b/drivers/net/vhost/rte_eth_vhost.c
> @@ -13,7 +13,6 @@
>  #include <ethdev_driver.h>
>  #include <ethdev_vdev.h>
>  #include <rte_malloc.h>
> -#include <rte_memcpy.h>
>  #include <rte_net.h>
>  #include <bus_vdev_driver.h>
>  #include <rte_kvargs.h>
> -- 
> 2.53.0
> 


More information about the dev mailing list