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

Commit bea650f9 authored by Bojun Pan's avatar Bojun Pan
Browse files

msm: ipa: set the mac header to 0 for rx skbs



packet_rcv_spkt is expecting to strip out the skb_mac_header.
Part of the alloc_skb, the mac header is setup ~0 which is causing
the skb data point to wrong location.

Change-Id: Ib8c14c029145da6a779ead21fb851b26677f4d0f
Signed-off-by: default avatarBojun Pan <bojunp@codeaurora.org>
parent fe2d5646
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1428,6 +1428,7 @@ static void apps_ipa_packet_receive_notify(void *priv,
		IPAWANDBG_LOW("Rx packet was received");
		skb->dev = IPA_NETDEV();
		skb->protocol = htons(ETH_P_MAP);
		skb_set_mac_header(skb, 0);

		if (ipa3_rmnet_res.ipa_napi_enable) {
			trace_rmnet_ipa_netif_rcv_skb3(dev->stats.rx_packets);