mlx5: fix build with GCC < 4.6
authorYaacov Hazan <yaacovh@mellanox.com>
Fri, 30 Oct 2015 18:55:18 +0000 (19:55 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sun, 1 Nov 2015 10:23:45 +0000 (11:23 +0100)
commit1f527a11520f9706fd5bb30828d36a666106d571
tree36dfb14a6eae189f65de812eb869601a1b55895d
parent2bbd8c9f8c8f246a17d8748b6d433007bcb1f790
mlx5: fix build with GCC < 4.6

Seen with GCC < 4.6:

 error: unknown field ‘tcp_udp’ specified in initializer
 error: extra brace group at end of initializer

Static initialization of anonymous structs/unions is a C11 feature
properly supported only since GCC 4.6.

Work around compilation errors with older versions by expanding
struct ibv_exp_flow_spec into struct hash_rxq_init.

Signed-off-by: Yaacov Hazan <yaacovh@mellanox.com>
Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
drivers/net/mlx5/mlx5_rxtx.h