|
@@ -4963,7 +4963,9 @@ u32 i40e_read_rx_ctl(struct i40e_hw *hw, u32 reg_addr)
|
|
|
int retry = 5;
|
|
|
u32 val = 0;
|
|
|
|
|
|
- use_register = (hw->aq.api_maj_ver == 1) && (hw->aq.api_min_ver < 5);
|
|
|
+ use_register = (((hw->aq.api_maj_ver == 1) &&
|
|
|
+ (hw->aq.api_min_ver < 5)) ||
|
|
|
+ (hw->mac.type == I40E_MAC_X722));
|
|
|
if (!use_register) {
|
|
|
do_retry:
|
|
|
status = i40e_aq_rx_ctl_read_register(hw, reg_addr, &val, NULL);
|
|
@@ -5022,7 +5024,9 @@ void i40e_write_rx_ctl(struct i40e_hw *hw, u32 reg_addr, u32 reg_val)
|
|
|
bool use_register;
|
|
|
int retry = 5;
|
|
|
|
|
|
- use_register = (hw->aq.api_maj_ver == 1) && (hw->aq.api_min_ver < 5);
|
|
|
+ use_register = (((hw->aq.api_maj_ver == 1) &&
|
|
|
+ (hw->aq.api_min_ver < 5)) ||
|
|
|
+ (hw->mac.type == I40E_MAC_X722));
|
|
|
if (!use_register) {
|
|
|
do_retry:
|
|
|
status = i40e_aq_rx_ctl_write_register(hw, reg_addr,
|