Skip to contentSkip to conversation

liquidio: Corrected Rx bytes counting

PATCH Applied Felix Manlunas 2 participants 2 messages Mar 3, 2018 – Mar 5, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 liquidio: Corrected Rx bytes counting

From: Intiyaz Basha <[email protected]>

Corrected stats mismatch between Host Tx and its peer Rx stats

---
 drivers/net/ethernet/cavium/liquidio/lio_core.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/ethernet/cavium/liquidio/lio_core.c +2 -1
index 90da33c..8bb4cfb 100644
@@ -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);
Signature · 1 line
1.8.3.1