qcacld-3.0: DP: HL: Use netif_rx_ni to hand over packets
On HL systems use netif_rx_ni to hand over packets to network stack. Change-Id: I14f9e50d74a6aca44c74e97c07372d391ada9aa9 CRs-Fixed: 2574352
This commit is contained in:
@@ -1949,6 +1949,24 @@ QDF_STATUS hdd_rx_pkt_thread_enqueue_cbk(void *adapter,
|
|||||||
return dp_rx_enqueue_pkt(cds_get_context(QDF_MODULE_ID_SOC), nbuf_list);
|
return dp_rx_enqueue_pkt(cds_get_context(QDF_MODULE_ID_SOC), nbuf_list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_HL_SUPPORT
|
||||||
|
QDF_STATUS hdd_rx_deliver_to_stack(struct hdd_adapter *adapter,
|
||||||
|
struct sk_buff *skb)
|
||||||
|
{
|
||||||
|
struct hdd_context *hdd_ctx = adapter->hdd_ctx;
|
||||||
|
int status = QDF_STATUS_E_FAILURE;
|
||||||
|
int netif_status;
|
||||||
|
|
||||||
|
adapter->hdd_stats.tx_rx_stats.rx_non_aggregated++;
|
||||||
|
hdd_ctx->no_rx_offload_pkt_cnt++;
|
||||||
|
netif_status = netif_rx_ni(skb);
|
||||||
|
|
||||||
|
if (netif_status == NET_RX_SUCCESS)
|
||||||
|
status = QDF_STATUS_SUCCESS;
|
||||||
|
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
#else
|
||||||
QDF_STATUS hdd_rx_deliver_to_stack(struct hdd_adapter *adapter,
|
QDF_STATUS hdd_rx_deliver_to_stack(struct hdd_adapter *adapter,
|
||||||
struct sk_buff *skb)
|
struct sk_buff *skb)
|
||||||
{
|
{
|
||||||
@@ -2003,6 +2021,7 @@ QDF_STATUS hdd_rx_deliver_to_stack(struct hdd_adapter *adapter,
|
|||||||
|
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0))
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0))
|
||||||
static bool hdd_is_gratuitous_arp_unsolicited_na(struct sk_buff *skb)
|
static bool hdd_is_gratuitous_arp_unsolicited_na(struct sk_buff *skb)
|
||||||
|
Reference in New Issue
Block a user