[PATCH v7 3/4] net/mlx5: fix warning about rte_memcpy length

Slava Ovsiienko viacheslavo at nvidia.com
Fri Feb 10 10:13:29 CET 2023


> -----Original Message-----
> From: Morten Brørup <mb at smartsharesystems.com>
> Sent: Thursday, February 9, 2023 6:54 PM
> To: dev at dpdk.org; Matan Azrad <matan at nvidia.com>; Slava Ovsiienko
> <viacheslavo at nvidia.com>; Xueming(Steven) Li <xuemingl at nvidia.com>
> Cc: ruifeng.wang at arm.com; zhoumin at loongson.cn; drc at linux.vnet.ibm.com;
> kda at semihalf.com; bruce.richardson at intel.com;
> konstantin.v.ananyev at yandex.ru; timothy.mcdaniel at intel.com;
> rmody at marvell.com; roretzla at linux.microsoft.com
> Subject: RE: [PATCH v7 3/4] net/mlx5: fix warning about rte_memcpy length
> 
> PING mlx5 maintainers. Care to review this minor improvement, so it can be
> included in 23.03?
> 
> > From: Morten Brørup [mailto:mb at smartsharesystems.com]
> > Sent: Monday, 16 January 2023 14.07
> >
> > Use RTE_PTR_ADD where copying to the offset of a field in a structure
> > holding multiple fields, to avoid compiler warnings with decorated
> > rte_memcpy.
> >
> > Fixes: 16a7dbc4f69006cc1c96ca2a2c6d3e3c51a2ff50 ("net/mlx5: make flow
> > modify action list thread safe")
> > Cc: xuemingl at nvidia.com
> > Cc: matan at nvidia.com
> > Cc: viacheslavo at nvidia.com
> >
> > Signed-off-by: Morten Brørup <mb at smartsharesystems.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo at nvidia.com>



More information about the dev mailing list