net/i40e/base: set PHY access flag on X722
The X722 FW API version 1.9 adds support for accessing PHY registers with Admin Queue Command. This enables reading EEPROM data from (Q)SFP+ transceivers, what was previously possible only on X710 devices. Signed-off-by: Adam Ludkiewicz <adam.ludkiewicz@intel.com> Signed-off-by: Xiaolong Ye <xiaolong.ye@intel.com> Acked-by: Qi Zhang <qi.z.zhang@intel.com> Acked-by: Beilei Xing <beilei.xing@intel.com>
This commit is contained in:
parent
801622b2ec
commit
bf1551fdb9
@ -598,6 +598,11 @@ STATIC void i40e_set_hw_flags(struct i40e_hw *hw)
|
||||
(aq->api_maj_ver == 1 &&
|
||||
aq->api_min_ver >= I40E_MINOR_VER_FW_LLDP_STOPPABLE_X722))
|
||||
hw->flags |= I40E_HW_FLAG_FW_LLDP_STOPPABLE;
|
||||
|
||||
if (aq->api_maj_ver > 1 ||
|
||||
(aq->api_maj_ver == 1 &&
|
||||
aq->api_min_ver >= I40E_MINOR_VER_GET_LINK_INFO_X722))
|
||||
hw->flags |= I40E_HW_FLAG_AQ_PHY_ACCESS_CAPABLE;
|
||||
/* fall through */
|
||||
default:
|
||||
break;
|
||||
|
@ -21,6 +21,8 @@
|
||||
|
||||
/* API version 1.7 implements additional link and PHY-specific APIs */
|
||||
#define I40E_MINOR_VER_GET_LINK_INFO_XL710 0x0007
|
||||
/* API version 1.9 for X722 implements additional link and PHY-specific APIs */
|
||||
#define I40E_MINOR_VER_GET_LINK_INFO_X722 0x0009
|
||||
/* API version 1.6 for X722 devices adds ability to stop FW LLDP agent */
|
||||
#define I40E_MINOR_VER_FW_LLDP_STOPPABLE_X722 0x0006
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user