Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9ec03bf6 authored by Igor Russkikh's avatar Igor Russkikh Committed by David S. Miller
Browse files

net: aquantia: Fix internal stats calculation on rx



skb len should be fetched before gro_receive - otherwise we may get
wrong or even outdated skb data.

Signed-off-by: default avatarIgor Russkikh <igor.russkikh@aquantia.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8e1c072f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -279,10 +279,10 @@ int aq_ring_rx_clean(struct aq_ring_s *self,

		skb_record_rx_queue(skb, self->idx);

		napi_gro_receive(napi, skb);

		++self->stats.rx.packets;
		self->stats.rx.bytes += skb->len;

		napi_gro_receive(napi, skb);
	}

err_exit: