Skip to content

Commit 2ff4ceb

Browse files
committed
Merge branch '100GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/net-queue
Tony Nguyen says: ==================== Intel Wired LAN Driver Updates 2024-08-07 (ice) This series contains updates to ice driver only. Grzegorz adds IRQ synchronization call before performing reset and prevents writing to hardware when it is resetting. Mateusz swaps incorrect assignment of FEC statistics. * '100GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/net-queue: ice: Fix incorrect assigns of FEC counts ice: Skip PTP HW writes during PTP reset procedure ice: Fix reset handler ==================== Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
2 parents 0411f73 + c181da1 commit 2ff4ceb

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

drivers/net/ethernet/intel/ice/ice_ethtool.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4673,10 +4673,10 @@ static int ice_get_port_fec_stats(struct ice_hw *hw, u16 pcs_quad, u16 pcs_port,
46734673
if (err)
46744674
return err;
46754675

4676-
fec_stats->uncorrectable_blocks.total = (fec_corr_high_val << 16) +
4677-
fec_corr_low_val;
4678-
fec_stats->corrected_blocks.total = (fec_uncorr_high_val << 16) +
4679-
fec_uncorr_low_val;
4676+
fec_stats->corrected_blocks.total = (fec_corr_high_val << 16) +
4677+
fec_corr_low_val;
4678+
fec_stats->uncorrectable_blocks.total = (fec_uncorr_high_val << 16) +
4679+
fec_uncorr_low_val;
46804680
return 0;
46814681
}
46824682

drivers/net/ethernet/intel/ice/ice_main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,8 @@ ice_prepare_for_reset(struct ice_pf *pf, enum ice_reset_req reset_type)
559559
if (test_bit(ICE_PREPARED_FOR_RESET, pf->state))
560560
return;
561561

562+
synchronize_irq(pf->oicr_irq.virq);
563+
562564
ice_unplug_aux_dev(pf);
563565

564566
/* Notify VFs of impending reset */

drivers/net/ethernet/intel/ice/ice_ptp.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1477,6 +1477,10 @@ void ice_ptp_link_change(struct ice_pf *pf, u8 port, bool linkup)
14771477
/* Update cached link status for this port immediately */
14781478
ptp_port->link_up = linkup;
14791479

1480+
/* Skip HW writes if reset is in progress */
1481+
if (pf->hw.reset_ongoing)
1482+
return;
1483+
14801484
switch (hw->ptp.phy_model) {
14811485
case ICE_PHY_E810:
14821486
/* Do not reconfigure E810 PHY */

0 commit comments

Comments
 (0)