net/mlx5: fix support for newer link speeds
authorNélio Laranjeiro <nelio.laranjeiro@6wind.com>
Wed, 26 Oct 2016 09:44:02 +0000 (11:44 +0200)
committerBruce Richardson <bruce.richardson@intel.com>
Wed, 26 Oct 2016 18:12:44 +0000 (20:12 +0200)
commit188408719888c997e813fb9fbb11e9029f1f1191
tree93328a9a22aea5a4a67430a2cba62af7b3ada9c8
parent75ef62a9430116e7a0d00fbec68af05a5333c116
net/mlx5: fix support for newer link speeds

Not all speed capabilities can be reported properly before Linux 4.8 (25G,
50G and 100G speeds are missing), moreover the API to retrieve them only
exists since Linux 4.5, this commit thus implements compatibility code for
all versions.

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

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