mlx5: fix build with debugging enabled
authorAdrien Mazarguil <adrien.mazarguil@6wind.com>
Tue, 3 Nov 2015 17:15:13 +0000 (18:15 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 3 Nov 2015 21:57:21 +0000 (22:57 +0100)
commit13d57bd5cdfeff687b9920fe236a873600c8aa50
tree7a846ef24623dc9aeb1242857aa8d5b9af5cdc0d
parentbcf1c37b9c3feff9b438bc231183b8bddde51c6c
mlx5: fix build with debugging enabled

The following error occurs when CONFIG_RTE_LIBRTE_MLX5_DEBUG=y:

 drivers/net/mlx5/mlx5.c:381:4: error: ISO C forbids braced-groups within expressions

RTE_MIN() uses the non-standard ({ ... }) syntax to declare variables within
parentheses, which is rejected by -pedantic.

Since the RSS_INDIRECTION_TABLE_SIZE check is meant to go away as soon as
DPDK supports larger/variable indirection tables, put it in a separate
condition.

Fixes: 634efbc2c8c0 ("mlx5: support RETA query and update")

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