RE: [PATCH 26/61] net/enic: replace use of rte_memcpy

"Hyong Youb Kim (hyonkim)" <[email protected]>
Newsgroups org.dpdk.dev
Message-ID <IA3PR11MB898770D64F7586E9834217A1BFA42@IA3PR11MB8987.namprd11.prod.outlook.com>

> -----Original Message-----
> From: Stephen Hemminger <[email protected]>
> Sent: Thursday, August 20, 2026 2:12 PM
> To: [email protected]
> Cc: Stephen Hemminger <[email protected]>; John Daley
> (johndale) <[email protected]>; Hyong Youb Kim (hyonkim)
> <[email protected]>
> Subject: [PATCH 26/61] net/enic: replace use of rte_memcpy
> 
> Don't need rte_memcpy for fixed size value.
> 
> Signed-off-by: Stephen Hemminger <[email protected]>
> ---
>  drivers/net/enic/enic_main.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c
> index 2696fa77d4..59a557a38e 100644
> --- a/drivers/net/enic/enic_main.c
> +++ b/drivers/net/enic/enic_main.c
> @@ -1215,8 +1215,8 @@ static int enic_set_rsskey(struct enic *enic, uint8_t
> *user_key)
> 
>  	/* Save for later queries */
>  	if (!err) {
> -		rte_memcpy(&enic->rss_key, rss_key_buf_va,
> -			   sizeof(union vnic_rss_key));
> +		memcpy(&enic->rss_key, rss_key_buf_va,
> +		       sizeof(union vnic_rss_key));
>  	}
>  	enic_free_consistent(enic, sizeof(union vnic_rss_key),
>  		rss_key_buf_va, rss_key_buf_pa);
> @@ -1248,7 +1248,7 @@ int enic_set_rss_reta(struct enic *enic, union
> vnic_rss_cpu *rss_cpu)
> 
>  	/* Save for later queries */
>  	if (!err)
> -		rte_memcpy(&enic->rss_cpu, rss_cpu, sizeof(union
> vnic_rss_cpu));
> +		memcpy(&enic->rss_cpu, rss_cpu, sizeof(union vnic_rss_cpu));
>  	return err;
>  }
> 
> --
> 2.53.0

Acked-by: Hyong Youb Kim <[email protected]>

Thanks.
-Hyong
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.