net/mlx5: work around gcc error
authorOlga Shern <olgas@mellanox.com>
Wed, 13 Jul 2016 14:33:22 +0000 (16:33 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 15 Jul 2016 21:01:15 +0000 (23:01 +0200)
commitcd8ec06ac04f71077bfc89c1a7e55ba48cf4e911
treefea672fdf7eb922c4dfe2f604b8f1be0e89d79e3
parentddc592ede8da65c3b3393f75ca1cf5c6c5da446c
net/mlx5: work around gcc error

RHEL 7.1's GCC for POWER8 reports the following error in one rte_memcpy()
macro call by mlx5:

 error: array subscript is above array bounds [-Werror=array-bounds]

It appears to be a GCC bug which can be worked around by making parentheses
more explicit.

Signed-off-by: Olga Shern <olgas@mellanox.com>
Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
drivers/net/mlx5/mlx5_rxtx.c