diff options
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_main.c')
-rw-r--r-- | drivers/net/ethernet/intel/ice/ice_main.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_main.c b/drivers/net/ethernet/intel/ice/ice_main.c index 8f6f2a1e67ed..51af6b9a7ea2 100644 --- a/drivers/net/ethernet/intel/ice/ice_main.c +++ b/drivers/net/ethernet/intel/ice/ice_main.c | |||
@@ -1592,23 +1592,23 @@ static void ice_free_irq_msix_misc(struct ice_pf *pf) | |||
1592 | /** | 1592 | /** |
1593 | * ice_ena_ctrlq_interrupts - enable control queue interrupts | 1593 | * ice_ena_ctrlq_interrupts - enable control queue interrupts |
1594 | * @hw: pointer to HW structure | 1594 | * @hw: pointer to HW structure |
1595 | * @v_idx: HW vector index to associate the control queue interrupts with | 1595 | * @reg_idx: HW vector index to associate the control queue interrupts with |
1596 | */ | 1596 | */ |
1597 | static void ice_ena_ctrlq_interrupts(struct ice_hw *hw, u16 v_idx) | 1597 | static void ice_ena_ctrlq_interrupts(struct ice_hw *hw, u16 reg_idx) |
1598 | { | 1598 | { |
1599 | u32 val; | 1599 | u32 val; |
1600 | 1600 | ||
1601 | val = ((v_idx & PFINT_OICR_CTL_MSIX_INDX_M) | | 1601 | val = ((reg_idx & PFINT_OICR_CTL_MSIX_INDX_M) | |
1602 | PFINT_OICR_CTL_CAUSE_ENA_M); | 1602 | PFINT_OICR_CTL_CAUSE_ENA_M); |
1603 | wr32(hw, PFINT_OICR_CTL, val); | 1603 | wr32(hw, PFINT_OICR_CTL, val); |
1604 | 1604 | ||
1605 | /* enable Admin queue Interrupt causes */ | 1605 | /* enable Admin queue Interrupt causes */ |
1606 | val = ((v_idx & PFINT_FW_CTL_MSIX_INDX_M) | | 1606 | val = ((reg_idx & PFINT_FW_CTL_MSIX_INDX_M) | |
1607 | PFINT_FW_CTL_CAUSE_ENA_M); | 1607 | PFINT_FW_CTL_CAUSE_ENA_M); |
1608 | wr32(hw, PFINT_FW_CTL, val); | 1608 | wr32(hw, PFINT_FW_CTL, val); |
1609 | 1609 | ||
1610 | /* enable Mailbox queue Interrupt causes */ | 1610 | /* enable Mailbox queue Interrupt causes */ |
1611 | val = ((v_idx & PFINT_MBX_CTL_MSIX_INDX_M) | | 1611 | val = ((reg_idx & PFINT_MBX_CTL_MSIX_INDX_M) | |
1612 | PFINT_MBX_CTL_CAUSE_ENA_M); | 1612 | PFINT_MBX_CTL_CAUSE_ENA_M); |
1613 | wr32(hw, PFINT_MBX_CTL, val); | 1613 | wr32(hw, PFINT_MBX_CTL, val); |
1614 | 1614 | ||
@@ -4214,8 +4214,7 @@ static void ice_tx_timeout(struct net_device *netdev) | |||
4214 | /* Read interrupt register */ | 4214 | /* Read interrupt register */ |
4215 | if (test_bit(ICE_FLAG_MSIX_ENA, pf->flags)) | 4215 | if (test_bit(ICE_FLAG_MSIX_ENA, pf->flags)) |
4216 | val = rd32(hw, | 4216 | val = rd32(hw, |
4217 | GLINT_DYN_CTL(tx_ring->q_vector->v_idx + | 4217 | GLINT_DYN_CTL(tx_ring->q_vector->reg_idx)); |
4218 | tx_ring->vsi->hw_base_vector)); | ||
4219 | 4218 | ||
4220 | netdev_info(netdev, "tx_timeout: VSI_num: %d, Q %d, NTC: 0x%x, HW_HEAD: 0x%x, NTU: 0x%x, INT: 0x%x\n", | 4219 | netdev_info(netdev, "tx_timeout: VSI_num: %d, Q %d, NTC: 0x%x, HW_HEAD: 0x%x, NTU: 0x%x, INT: 0x%x\n", |
4221 | vsi->vsi_num, hung_queue, tx_ring->next_to_clean, | 4220 | vsi->vsi_num, hung_queue, tx_ring->next_to_clean, |