mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 15:50:53 +07:00
[PATCH] 64bit bugs in s2io
le32_to_cpu() on 64bit values Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
parent
8a8e447b2a
commit
ee705dba75
@ -4303,11 +4303,11 @@ static struct net_device_stats *s2io_get_stats(struct net_device *dev)
|
||||
sp->stats.tx_errors =
|
||||
le32_to_cpu(mac_control->stats_info->tmac_any_err_frms);
|
||||
sp->stats.rx_errors =
|
||||
le32_to_cpu(mac_control->stats_info->rmac_drop_frms);
|
||||
le64_to_cpu(mac_control->stats_info->rmac_drop_frms);
|
||||
sp->stats.multicast =
|
||||
le32_to_cpu(mac_control->stats_info->rmac_vld_mcst_frms);
|
||||
sp->stats.rx_length_errors =
|
||||
le32_to_cpu(mac_control->stats_info->rmac_long_frms);
|
||||
le64_to_cpu(mac_control->stats_info->rmac_long_frms);
|
||||
|
||||
return (&sp->stats);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user