mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-28 12:25:31 +00:00
liquidio: Corrected Rx bytes counting
Corrected stats mismatch between Host Tx and its peer Rx stats Signed-off-by: Intiyaz Basha <intiyaz.basha@cavium.com> Acked-by: Derek Chickles <derek.chickles@cavium.com> Signed-off-by: Felix Manlunas <felix.manlunas@cavium.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
d143b9e305
commit
e574c0eec5
@ -571,7 +571,8 @@ liquidio_push_packet(u32 octeon_id __attribute__((unused)),
|
||||
|
||||
napi_gro_receive(napi, skb);
|
||||
|
||||
droq->stats.rx_bytes_received += len;
|
||||
droq->stats.rx_bytes_received += len -
|
||||
rh->r_dh.len * BYTES_PER_DHLEN_UNIT;
|
||||
droq->stats.rx_pkts_received++;
|
||||
} else {
|
||||
recv_buffer_free(skb);
|
||||
|
Loading…
Reference in New Issue
Block a user