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: Michael Adisumarta <quic_madisuma@quicinc.com>
This commit is contained in:
Michael Adisumarta
2021-12-21 12:35:57 -08:00
parent 36190d7fab
commit 43f160d969

View File

@@ -1626,6 +1626,7 @@ static void apps_ipa_packet_receive_notify(void *priv,
IPAWANDBG_LOW("Rx packet was received"); IPAWANDBG_LOW("Rx packet was received");
skb->dev = IPA_NETDEV(); skb->dev = IPA_NETDEV();
skb->protocol = htons(ETH_P_MAP); skb->protocol = htons(ETH_P_MAP);
skb_set_mac_header(skb, 0);
/* default traffic uses rx-0 queue. */ /* default traffic uses rx-0 queue. */
skb_record_rx_queue(skb, 0); skb_record_rx_queue(skb, 0);