mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-03 17:04:50 -04:00
ice: Fix incorrect assigns of FEC counts
Commitac21add254("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:ac21add254("ice: Implement driver functionality to dump fec statistics") Reviewed-by: Wojciech Drewek <wojciech.drewek@intel.com> Signed-off-by: Mateusz Polchlopek <mateusz.polchlopek@intel.com> Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com> (A Contingent worker at Intel) Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
This commit is contained in:
committed by
Tony Nguyen
parent
bca515d583
commit
c181da18a7
@@ -4673,10 +4673,10 @@ static int ice_get_port_fec_stats(struct ice_hw *hw, u16 pcs_quad, u16 pcs_port,
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
fec_stats->uncorrectable_blocks.total = (fec_corr_high_val << 16) +
|
||||
fec_corr_low_val;
|
||||
fec_stats->corrected_blocks.total = (fec_uncorr_high_val << 16) +
|
||||
fec_uncorr_low_val;
|
||||
fec_stats->corrected_blocks.total = (fec_corr_high_val << 16) +
|
||||
fec_corr_low_val;
|
||||
fec_stats->uncorrectable_blocks.total = (fec_uncorr_high_val << 16) +
|
||||
fec_uncorr_low_val;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user