]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
nfp: use the correct index for link speed table
authorJakub Kicinski <jakub.kicinski@netronome.com>
Mon, 15 Jan 2018 19:47:53 +0000 (11:47 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Jan 2018 19:55:07 +0000 (14:55 -0500)
commit0d9c9f0f40ca262b67fc06a702b85f3976f5e1a1
tree4670585b5e3b01837e3b8f21ac498c4c4f39325c
parenta5b1379afbfabf91e3a689e82ac619a7157336b3
nfp: use the correct index for link speed table

sts variable is holding link speed as well as state.  We should
be using ls to index into ls_to_ethtool.

Fixes: 265aeb511bd5 ("nfp: add support for .get_link_ksettings()")
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c