diff options
author | Intiyaz Basha <intiyaz.basha@cavium.com> | 2018-03-02 18:29:04 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-05 10:21:29 -0500 |
commit | e574c0eec56a746445cab3f8f7b9a0302dd101f5 (patch) | |
tree | 8bf74f8a85c40d1f94028ea0d4774129d98e0f65 | |
parent | d143b9e3055358e160d8d5975d889ce5c149625a (diff) | |
download | linux-e574c0eec56a746445cab3f8f7b9a0302dd101f5.tar.bz2 |
liquidio: Corrected Rx bytes counting
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>
-rw-r--r-- | drivers/net/ethernet/cavium/liquidio/lio_core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/cavium/liquidio/lio_core.c b/drivers/net/ethernet/cavium/liquidio/lio_core.c index 32ae63b6f20e..8b1ee83134e3 100644 --- a/drivers/net/ethernet/cavium/liquidio/lio_core.c +++ b/drivers/net/ethernet/cavium/liquidio/lio_core.c @@ -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); |