Skip to content

Commit e574c0e

Browse files
Intiyaz Bashadavem330
authored andcommitted
liquidio: Corrected Rx bytes counting
Corrected stats mismatch between Host Tx and its peer Rx stats Signed-off-by: Intiyaz Basha <[email protected]> Acked-by: Derek Chickles <[email protected]> Signed-off-by: Felix Manlunas <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent d143b9e commit e574c0e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/net/ethernet/cavium/liquidio/lio_core.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,8 @@ liquidio_push_packet(u32 octeon_id __attribute__((unused)),
571571

572572
napi_gro_receive(napi, skb);
573573

574-
droq->stats.rx_bytes_received += len;
574+
droq->stats.rx_bytes_received += len -
575+
rh->r_dh.len * BYTES_PER_DHLEN_UNIT;
575576
droq->stats.rx_pkts_received++;
576577
} else {
577578
recv_buffer_free(skb);

0 commit comments

Comments
 (0)