From b178eb464d8d1a6deabe234e3b834b12fee9e3a8 Mon Sep 17 00:00:00 2001 From: Dhanashri Atre Date: Tue, 21 Mar 2017 12:32:33 -0700 Subject: [PATCH] qcacmn: Initialize LRO and rx hash during vdev attach We need to send the LRO and rx hash configuration to the firmware during vdev attach. Currently they are being incorrectly sent before WMI service ready indication. Change-Id: I69680b48e6725c6deaad434d722546052cfe86b4 CRs-Fixed: 2022770 --- dp/wifi3.0/dp_main.c | 3 ++- wlan_cfg/wlan_cfg.c | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/dp/wifi3.0/dp_main.c b/dp/wifi3.0/dp_main.c index 1733b42e5645..d0c1a2764766 100644 --- a/dp/wifi3.0/dp_main.c +++ b/dp/wifi3.0/dp_main.c @@ -1235,7 +1235,6 @@ static struct cdp_pdev *dp_pdev_attach_wifi3(struct cdp_soc_t *txrx_soc, /* MCL */ dp_local_peer_id_pool_init(pdev); #endif - dp_lro_hash_setup(soc); dp_dscp_tid_map_setup(pdev); /* Rx monitor mode specific init */ @@ -1609,6 +1608,8 @@ static struct cdp_vdev *dp_vdev_attach_wifi3(struct cdp_pdev *txrx_pdev, qdf_timer_mod(&soc->int_timer, DP_INTR_POLL_TIMER_MS); #endif + dp_lro_hash_setup(soc); + QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_ERROR, "Created vdev %p (%pM)", vdev, vdev->mac_addr.raw); DP_STATS_INIT(vdev); diff --git a/wlan_cfg/wlan_cfg.c b/wlan_cfg/wlan_cfg.c index 8aa6cc592209..c30b0d9288ed 100644 --- a/wlan_cfg/wlan_cfg.c +++ b/wlan_cfg/wlan_cfg.c @@ -85,7 +85,11 @@ #define NUM_RXDMA_RINGS_PER_PDEV 1 #endif +#ifdef WLAN_RX_HASH +#define WLAN_RX_HASH_ENABLE 1 +#else #define WLAN_RX_HASH_ENABLE 0 +#endif #define WLAN_LRO_ENABLE 0 static const int tx_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS] = {