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)
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>

No differences found