[dpdk-dev] [PATCH] net/mlx5: fix build with strict alignment enabled

Raslan Darawsheh rasland at mellanox.com
Sun Oct 20 09:58:19 CEST 2019


Hi,

> -----Original Message-----
> From: dev <dev-bounces at dpdk.org> On Behalf Of Ali Alnubani
> Sent: Tuesday, October 15, 2019 5:56 PM
> To: dev at dpdk.org
> Cc: Slava Ovsiienko <viacheslavo at mellanox.com>; Jeremy Plsek
> <jplsek at iol.unh.edu>
> Subject: [dpdk-dev] [PATCH] net/mlx5: fix build with strict alignment enabled
> 
> This patch converts some of the casts to unaligned integer types.
> 
> This fixes the following error, which is seen on x86, with
> gcc 7.4.0:
> 
> drivers/net/mlx5/mlx5_rxtx.c: In function ‘mlx5_tx_dseg_iptr’:
> drivers/net/mlx5/mlx5_rxtx.c:2740:9: error: passing argument 1 of
> ‘memcpy’ makes pointer from integer without a cast
> [-Werror=int-conversion]
>   memcpy(dst, src, len);
>          ^~~
> 
> The memcpy call is replaced with 2 copies of uint32 for better
> performance on ARM.
> 
> Fixes: 18a1c20044c0 ("net/mlx5: implement Tx burst template")
> 
> Reported-by: Jeremy Plsek <jplsek at iol.unh.edu>
> Signed-off-by: Ali Alnubani <alialnu at mellanox.com>



Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh


More information about the dev mailing list