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

2019-10-20 Thread Raslan Darawsheh
Hi, > -Original Message- > From: dev On Behalf Of Ali Alnubani > Sent: Tuesday, October 15, 2019 5:56 PM > To: dev@dpdk.org > Cc: Slava Ovsiienko ; Jeremy Plsek > > Subject: [dpdk-dev] [PATCH] net/mlx5: fix build with strict alignment enabled > > This patch

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

2019-10-15 Thread Slava Ovsiienko
> -Original Message- > From: Ali Alnubani > Sent: Tuesday, October 15, 2019 17:56 > To: dev@dpdk.org > Cc: Slava Ovsiienko ; Jeremy Plsek > > Subject: [PATCH] net/mlx5: fix build with strict alignment enabled > > This patch converts some of the casts to unaligned integer types. > > This

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

2019-10-15 Thread Ali Alnubani
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 inte