From b71d061de414f02f441d095522d7a38f7010e126 Mon Sep 17 00:00:00 2001 From: Orhan K AKYILDIZ Date: Sat, 6 Aug 2016 15:16:59 -0700 Subject: [PATCH] qcacld-3.0: Enable FW flow steering on NAPI Make sure that the message to enable flow steering is sent to the FW when NAPI or LRO is enabled (as opposed to sending it when LRO is enabled only). Change-Id: Iadb4a08b213c9c31921c520f663a8a5359b0444b CRs-Fixed: 1064917 --- core/hdd/src/wlan_hdd_lro.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/core/hdd/src/wlan_hdd_lro.c b/core/hdd/src/wlan_hdd_lro.c index 4669746b95d3..4bb12ec0618b 100644 --- a/core/hdd/src/wlan_hdd_lro.c +++ b/core/hdd/src/wlan_hdd_lro.c @@ -459,6 +459,8 @@ void hdd_lro_flush(void *data) * * This function sends the LRO configuration to the firmware * via WMA + * Make sure that this function gets called after NAPI + * instances have been created. * * Return: 0 - success, < 0 - failure */ @@ -466,8 +468,10 @@ int hdd_lro_init(hdd_context_t *hdd_ctx) { struct wma_lro_config_cmd_t lro_config; - if (!hdd_ctx->config->lro_enable) { - hdd_err("LRO Disabled"); + if ((!hdd_ctx->config->lro_enable) && + (hdd_napi_enabled(HDD_NAPI_ANY) == 0)) + { + hdd_err("LRO and NAPI are both disabled."); return 0; }