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)
commit19654cda1f3b15ef8b57fbae6a417ffba827df6f
tree09fb14f3a354766e29a4525e4698da528c118b11
parent425bddd569fa8ccf218879cbcae7c80c63334e03
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