liquidio: fix wrong information about link modes reported to ethtool
authorManish Awasthi <manish.awasthi@cavium.com>
Thu, 16 Mar 2017 23:16:17 +0000 (16:16 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Mar 2017 04:40:29 +0000 (21:40 -0700)
commitfe723dff0fa4181ddb8116e72bc67d00d4239cb6
tree09fb14f3a354766e29a4525e4698da528c118b11
parent513d2d01b7df2ac7e2a3482cbefcacc83c174b55
liquidio: fix wrong information about link modes reported to ethtool

Information reported to ethtool about link modes is wrong for 25G NIC.  Fix
it by checking for presence of 25G NIC, checking the link speed reported by
NIC firmware, and then assigning proper values to the
ethtool_link_ksettings struct.

Signed-off-by: Manish Awasthi <manish.awasthi@cavium.com>
Signed-off-by: Felix Manlunas <felix.manlunas@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/liquidio/lio_ethtool.c