net/nfp: report link speed using hardware info
authorAlejandro Lucero <alejandro.lucero@netronome.com>
Tue, 20 Dec 2016 13:22:00 +0000 (13:22 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 17 Jan 2017 18:40:51 +0000 (19:40 +0100)
commit8245355acbbb19f32283efb5d90802774e2292e8
tree122ad49e7e31d24e59a7333ede24f21431017b98
parent348dbdd8d1cc1477c24802424ecb0df40dfae73a
net/nfp: report link speed using hardware info

Previous reported speed was hardcoded because there was not firmware
support for getting this information. This change needs also to support
old firmware versions, but instead of the previous hardcoded report, no
speed is reported to the user avoiding to give the wrong speed when link
is not configured to 40G.

Signed-off-by: Alejandro Lucero <alejandro.lucero@netronome.com>
drivers/net/nfp/nfp_net.c
drivers/net/nfp/nfp_net_ctrl.h