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

Commit b1f20182 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: rndis_ipa: fix rx bytes reporting"

parents 4313aedf e2d72897
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1087,6 +1087,7 @@ static void rndis_ipa_packet_receive_notify(void *private,
	struct sk_buff *skb = (struct sk_buff *)data;
	struct rndis_ipa_dev *rndis_ipa_ctx = private;
	int result;
	unsigned int packet_len = skb->len;

	RNDIS_IPA_DEBUG("packet Rx, len=%d\n",
		skb->len);
@@ -1123,7 +1124,7 @@ static void rndis_ipa_packet_receive_notify(void *private,
	if (result)
		RNDIS_IPA_ERROR("fail on netif_rx\n");
	rndis_ipa_ctx->net->stats.rx_packets++;
	rndis_ipa_ctx->net->stats.rx_bytes += skb->len;
	rndis_ipa_ctx->net->stats.rx_bytes += packet_len;

	return;
}