Hi, > -----Original Message----- > From: dev <dev-boun...@dpdk.org> On Behalf Of Ali Alnubani > Sent: Tuesday, October 15, 2019 5:56 PM > To: dev@dpdk.org > Cc: Slava Ovsiienko <viachesl...@mellanox.com>; Jeremy Plsek > <jpl...@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 <jpl...@iol.unh.edu> > Signed-off-by: Ali Alnubani <alia...@mellanox.com>
Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh