net/mlx5: fix link speed capability information
authorNélio Laranjeiro <nelio.laranjeiro@6wind.com>
Wed, 26 Oct 2016 09:44:01 +0000 (11:44 +0200)
committerBruce Richardson <bruce.richardson@intel.com>
Wed, 26 Oct 2016 18:12:43 +0000 (20:12 +0200)
commit75ef62a9430116e7a0d00fbec68af05a5333c116
tree3657c2ac1940089df665683bddbd430257a99444
parentf32f5aee9effafd14b24a6a17e537a994f77063c
net/mlx5: fix link speed capability information

Make hard-coded values dynamic to return correct link speed capabilities
(not all ConnectX-4 NICs support everything).

Fixes: e274f5732225 ("ethdev: add speed capabilities")

Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
drivers/net/mlx5/mlx5.h
drivers/net/mlx5/mlx5_ethdev.c