net/mlx5: fix build with strict alignment enabled
authorAli Alnubani <alialnu@mellanox.com>
Thu, 17 Oct 2019 07:19:31 +0000 (10:19 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 23 Oct 2019 14:43:10 +0000 (16:43 +0200)
commitf3d0c07b095d7d83ff81abd40990b55372295f46
tree8e9d7eb259405314cd0779c0d190c835b9cba0d6
parent85125863be78174d2ecbac2c2e2a25cab3c9d2db
net/mlx5: fix build with strict alignment enabled

This patch converts some of the casts to unaligned integer types.
The memcpy call is replaced with explicit copying because it
may require type qualifiers in some environments.

Fixes: 18a1c20044c0 ("net/mlx5: implement Tx burst template")
Cc: stable@dpdk.org
Reported-by: Jeremy Plsek <jplsek@iol.unh.edu>
Signed-off-by: Ali Alnubani <alialnu@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
drivers/net/mlx5/mlx5_rxtx.c