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

Commit 301ab1b9 authored by Ravi Gummadidala's avatar Ravi Gummadidala Committed by Gerrit - the friendly Code Review server
Browse files

msm: rmnet_ipa: use netif_rx_ni to push packets to network stack



rmnet_ipa indicates packets to the network stack in process
context so netif_rx_ni is the correct API to use. Using
netif_rx in this context can cause fluctuations in latency
of NET_RX being serviced.

Change-Id: Iceaa3411784923e7b6754fb3399c8388d5e97790
Signed-off-by: default avatarRavi Gummadidala <rgummadi@codeaurora.org>
parent d5e312a9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1058,9 +1058,9 @@ static void apps_ipa_packet_receive_notify(void *priv,
	skb->dev = ipa_netdevs[0];
	skb->protocol = htons(ETH_P_MAP);

	result = netif_rx(skb);
	result = netif_rx_ni(skb);
	if (result)	{
		pr_err_ratelimited(DEV_NAME " %s:%d fail on netif_rx\n",
		pr_err_ratelimited(DEV_NAME " %s:%d fail on netif_rx_ni\n",
				__func__, __LINE__);
		dev->stats.rx_dropped++;
	}