Commit 66d885cb authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller

bnx2x: fix bnx2x_storm_stats_update() on big endian

commit 619c5cb6 (New 7.0 FW: bnx2x, cnic, bnx2i, bnx2fc) added new
sparse warnings.
Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
Cc: Eilon Greenstein <eilong@broadcom.com>
Cc: Vladislav Zolotarov <vladz@broadcom.com>
Cc: Michael Chan <mchan@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7465ac3c
...@@ -1081,17 +1081,17 @@ static int bnx2x_storm_stats_update(struct bnx2x *bp) ...@@ -1081,17 +1081,17 @@ static int bnx2x_storm_stats_update(struct bnx2x *bp)
estats->rx_stat_ifhcinbadoctets_lo); estats->rx_stat_ifhcinbadoctets_lo);
ADD_64(fstats->total_bytes_received_hi, ADD_64(fstats->total_bytes_received_hi,
tfunc->rcv_error_bytes.hi, le32_to_cpu(tfunc->rcv_error_bytes.hi),
fstats->total_bytes_received_lo, fstats->total_bytes_received_lo,
tfunc->rcv_error_bytes.lo); le32_to_cpu(tfunc->rcv_error_bytes.lo));
memcpy(estats, &(fstats->total_bytes_received_hi), memcpy(estats, &(fstats->total_bytes_received_hi),
sizeof(struct host_func_stats) - 2*sizeof(u32)); sizeof(struct host_func_stats) - 2*sizeof(u32));
ADD_64(estats->error_bytes_received_hi, ADD_64(estats->error_bytes_received_hi,
tfunc->rcv_error_bytes.hi, le32_to_cpu(tfunc->rcv_error_bytes.hi),
estats->error_bytes_received_lo, estats->error_bytes_received_lo,
tfunc->rcv_error_bytes.lo); le32_to_cpu(tfunc->rcv_error_bytes.lo));
ADD_64(estats->etherstatsoverrsizepkts_hi, ADD_64(estats->etherstatsoverrsizepkts_hi,
estats->rx_stat_dot3statsframestoolong_hi, estats->rx_stat_dot3statsframestoolong_hi,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment