Skip to content

Commit c181da1

Browse files
halfboy93anguy11
authored andcommitted
ice: Fix incorrect assigns of FEC counts
Commit ac21add ("ice: Implement driver functionality to dump fec statistics") introduces obtaining FEC correctable and uncorrectable stats per netdev in ICE driver. Unfortunately the assignment of values to fec_stats structure has been done incorrectly. This commit fixes the assignments. Fixes: ac21add ("ice: Implement driver functionality to dump fec statistics") Reviewed-by: Wojciech Drewek <[email protected]> Signed-off-by: Mateusz Polchlopek <[email protected]> Tested-by: Pucha Himasekhar Reddy <[email protected]> (A Contingent worker at Intel) Signed-off-by: Tony Nguyen <[email protected]>
1 parent bca515d commit c181da1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-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

0 commit comments

Comments
 (0)