[PATCH net-next] liquidio: Corrected Rx bytes counting

Subsystems: cavium liquidio network driver, networking drivers, the rest

STALE3150d REVIEWED: 1 (0M)

1 review trailer.

2 messages, 2 authors, 2018-03-05 · open the first message on its own page

[PATCH net-next] liquidio: Corrected Rx bytes counting

From: Felix Manlunas <hidden>
Date: 2018-03-03 02:29:13

From: Intiyaz Basha <redacted>

Corrected stats mismatch between Host Tx and its peer Rx stats

Signed-off-by: Intiyaz Basha <redacted>
Acked-by: Derek Chickles <redacted>
Signed-off-by: Felix Manlunas <redacted>
---
 drivers/net/ethernet/cavium/liquidio/lio_core.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/cavium/liquidio/lio_core.c b/drivers/net/ethernet/cavium/liquidio/lio_core.c
index 90da33c..8bb4cfb 100644
--- a/drivers/net/ethernet/cavium/liquidio/lio_core.c
+++ b/drivers/net/ethernet/cavium/liquidio/lio_core.c
@@ -571,7 +571,8 @@ static int octeon_setup_droq(struct octeon_device *oct, int q_no, int num_descs,
 
 		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);
-- 
1.8.3.1

Re: [PATCH net-next] liquidio: Corrected Rx bytes counting

From: David Miller <davem@davemloft.net>
Date: 2018-03-05 15:22:42

From: Felix Manlunas <redacted>
Date: Fri, 2 Mar 2018 18:29:04 -0800
From: Intiyaz Basha <redacted>

Corrected stats mismatch between Host Tx and its peer Rx stats

Signed-off-by: Intiyaz Basha <redacted>
Acked-by: Derek Chickles <redacted>
Signed-off-by: Felix Manlunas <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help