Skip to content

Commit

Permalink
liquidio: Corrected Rx bytes counting
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Intiyaz Basha authored and David S. Miller committed Mar 5, 2018
1 parent d143b9e commit e574c0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/ethernet/cavium/liquidio/lio_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e574c0e

Please sign in to comment.