qcacld-3.0: Mark packets to be sent to FW in control block

Classify the ICMP request packet and mark it to be
sent to the firmware in the packet control block.

Change-Id: Ic48123864bfc206c0659003b75238cacedb96134
CRs-Fixed: 2813173
This commit is contained in:
Rakesh Pillai 2020-11-04 22:36:15 +05:30 • committed by snandini
commit 31bddce966

View file

@ -1048,6 +1048,16 @@ static void __hdd_hard_start_xmit(struct sk_buff *skb,
QDF_NBUF_CB_TX_EXTRA_FRAG_FLAGS_NOTIFY_COMP(skb) = 1;
is_dhcp = true;
}
} else if (QDF_NBUF_CB_GET_PACKET_TYPE(skb) ==
QDF_NBUF_CB_PACKET_TYPE_ICMP) {
subtype = qdf_nbuf_get_icmp_subtype(skb);
/*
* Mark the ICMP requests to be sent to FW.
* The decision on whether its actually sent to FW
* is done in the DATAPATH layer.
*/
if (subtype == QDF_PROTO_ICMP_REQ)
QDF_NBUF_CB_TX_PACKET_TO_FW(skb) = 1;
}
/* track connectivity stats */
if (adapter->pkt_type_bitmap)