Commit e574c0ee authored by Intiyaz Basha's avatar Intiyaz Basha Committed by David S. Miller

liquidio: Corrected Rx bytes counting

Corrected stats mismatch between Host Tx and its peer Rx stats
Signed-off-by: default avatarIntiyaz Basha <intiyaz.basha@cavium.com>
Acked-by: default avatarDerek Chickles <derek.chickles@cavium.com>
Signed-off-by: default avatarFelix Manlunas <felix.manlunas@cavium.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d143b9e3
...@@ -571,7 +571,8 @@ liquidio_push_packet(u32 octeon_id __attribute__((unused)), ...@@ -571,7 +571,8 @@ liquidio_push_packet(u32 octeon_id __attribute__((unused)),
napi_gro_receive(napi, skb); 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++; droq->stats.rx_pkts_received++;
} else { } else {
recv_buffer_free(skb); recv_buffer_free(skb);
......
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