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

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

Merge "msm: ecm_ipa: fix rx bytes reporting"

parents b1f20182 3c1ab59e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -661,12 +661,14 @@ static void ecm_ipa_packet_receive_notify(void *priv,
	struct sk_buff *skb = (struct sk_buff *)data;
	struct ecm_ipa_dev *ecm_ipa_ctx = priv;
	int result;
	unsigned int packet_len;

	if (!skb) {
		ECM_IPA_ERROR("Bad SKB received from IPA driver\n");
		return;
	}

	packet_len = skb->len;
	ECM_IPA_DEBUG("packet RX, len=%d\n", skb->len);

	if (unlikely(ecm_ipa_ctx->state != ECM_IPA_CONNECTED_AND_UP)) {
@@ -691,7 +693,7 @@ static void ecm_ipa_packet_receive_notify(void *priv,
	if (result)
		ECM_IPA_ERROR("fail on netif_rx\n");
	ecm_ipa_ctx->net->stats.rx_packets++;
	ecm_ipa_ctx->net->stats.rx_bytes += skb->len;
	ecm_ipa_ctx->net->stats.rx_bytes += packet_len;

	return;
}