From ddee734acba4e9f70eabea032139af9c899feeca Mon Sep 17 00:00:00 2001 From: chunquan Date: Mon, 9 Aug 2021 14:36:05 +0800 Subject: [PATCH] qcacld-3.0: Fix tcp drop for out of order When NAPI enabled for Non-SMP platform, the 32th pkt is send to tcp stack by netif_receive_skb, the first 31 pkts are still in backlog queue, out of order issue will happen Change-Id: Ieef5250fef9fcabb86e0e65673529c7db89a96c1 CRs-Fixed: 2997452 --- core/hdd/src/wlan_hdd_ipa.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/core/hdd/src/wlan_hdd_ipa.c b/core/hdd/src/wlan_hdd_ipa.c index 74ae49dc56..d92202cdda 100644 --- a/core/hdd/src/wlan_hdd_ipa.c +++ b/core/hdd/src/wlan_hdd_ipa.c @@ -363,6 +363,7 @@ static void hdd_ipa_set_wake_up_idle(bool wake_up_idle) } #endif +#ifdef QCA_CONFIG_SMP /** * hdd_ipa_send_to_nw_stack() - Check if IPA supports NAPI * polling during RX @@ -384,6 +385,15 @@ static int hdd_ipa_send_to_nw_stack(qdf_nbuf_t skb) result = netif_rx_ni(skb); return result; } +#else +static int hdd_ipa_send_to_nw_stack(qdf_nbuf_t skb) +{ + int result; + + result = netif_rx_ni(skb); + return result; +} +#endif #ifdef QCA_CONFIG_SMP