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:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user