From b4a0d6f786f8fd4e706f4e3b4f24b9c493c3efb0 Mon Sep 17 00:00:00 2001 From: Amir Levy Date: Mon, 23 Sep 2019 17:18:58 +0300 Subject: [PATCH] msm: ipa: Added an option to enable NAPI in 11ad Added a flag in the 11ad driver to indicate if NAPI is enabled in the LAN RX Datapath. In case the flag is true the 11ad driver will now use napi_gro_receive instead of netif_rx_ni, meaning the GRO feature is also enabled with this change. Acked-by: Tal Gelbard Change-Id: I5c6cb3e08c29c4b79cdcbc9e4d3acb485156a607 Signed-off-by: Amir Levy --- drivers/platform/msm/ipa/ipa_clients/ipa_wigig.c | 4 ++++ include/linux/ipa_wigig.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/drivers/platform/msm/ipa/ipa_clients/ipa_wigig.c b/drivers/platform/msm/ipa/ipa_clients/ipa_wigig.c index e23e5ffd2511..500ab5b25280 100644 --- a/drivers/platform/msm/ipa/ipa_clients/ipa_wigig.c +++ b/drivers/platform/msm/ipa/ipa_clients/ipa_wigig.c @@ -173,6 +173,10 @@ int ipa_wigig_init(struct ipa_wigig_init_in_params *in, out->is_uc_ready = inout.is_uC_ready; + out->lan_rx_napi_enable = ipa_get_lan_rx_napi(); + IPA_WIGIG_DBG("LAN RX NAPI enabled = %s\n", + out->lan_rx_napi_enable ? "True" : "False"); + IPA_WIGIG_DBG("exit\n"); return 0; diff --git a/include/linux/ipa_wigig.h b/include/linux/ipa_wigig.h index a9fac9eb63be..4a261d700738 100644 --- a/include/linux/ipa_wigig.h +++ b/include/linux/ipa_wigig.h @@ -39,10 +39,12 @@ struct ipa_wigig_init_in_params { * * @is_uC_ready: is uC ready. No API should be called until uC is ready. * @uc_db_pa: physical address of IPA uC doorbell + * @lan_rx_napi_enable: if we use NAPI in the LAN rx */ struct ipa_wigig_init_out_params { bool is_uc_ready; phys_addr_t uc_db_pa; + bool lan_rx_napi_enable; }; /*