i40e: Fix for ethtool -m issue on X722 NIC
Subsystems (2)
PATCH 1/1 i40e: Fix for ethtool -m issue on X722 NIC
From: Arkadiusz Kubalewski <[email protected]>
This patch contains fix for a problem with command:
'ethtool -m <dev>'
which breaks functionality of:
'ethtool <dev>'
when called on X722 NIC
Disallowed update of link phy_types on X722 NIC Currently correct value cannot be obtained from FW Previously wrong value returned by FW was used and was a root cause for incorrect output of 'ethtool <dev>' command
--- drivers/net/ethernet/intel/i40e/i40e_common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/ethernet/intel/i40e/i40e_common.c +2 -1
@@ -1896,7 +1896,8 @@ i40e_status i40e_aq_get_link_info(struct i40e_hw *hw, hw->aq.fw_min_ver < 40)) && hw_link_info->phy_type == 0xE) hw_link_info->phy_type = I40E_PHY_TYPE_10GBASE_SFPP_CU; -if (hw->flags &I40E_HW_FLAG_AQ_PHY_ACCESS_CAPABLE ) { +if (hw->flags &I40E_HW_FLAG_AQ_PHY_ACCESS_CAPABLE && + hw->mac.type !=I40E_MAC_X722 ) {__le32 tmp;memcpy (&tmp, resp->link_type,sizeof (tmp));
Signature · 1 line
2.21.0
Bowers
PATCH 1/1 i40e: Fix for ethtool -m issue on X722 NIC
Quoted 17 lines
-----Original Message-----
From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On Behalf Of Alice Michael
Sent: Wednesday, November 6, 2019 6:24 AM
To: Michael, Alice <[email protected]>; intel-wired-
lan at lists.osuosl.org
Cc: Kubalewski, Arkadiusz <[email protected]>
Subject: [Intel-wired-lan] [PATCH] i40e: Fix for ethtool -m issue on X722 NICFrom: Arkadiusz Kubalewski <[email protected]>
This patch contains fix for a problem with command:
'ethtool -m <dev>'
which breaks functionality of:
'ethtool <dev>'
when called on X722 NIC
Quoted 8 lines
Disallowed update of link
phy_typeson X722 NIC Currently correct value cannot be obtained from FW Previously wrong value returned by FW was used and was a root cause for incorrect output of 'ethtool <dev>' commandSigned-off-by Arkadiusz Kubalewski <[email protected]>--- drivers/net/ethernet/intel/i40e/i40e_common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)