From 1676defe7edd3f0cb77dc9816aa5e86f81a797da Mon Sep 17 00:00:00 2001 From: Venkata Sharath Chandra Manchala Date: Thu, 4 May 2017 14:18:09 -0700 Subject: [PATCH] qcacld-3.0: Enable TSO Add FEATURE_TSO flag in Kbuild to enable the TSO feature for Lithium based chipsets Change-Id: Ie26b2b9a191828b3ce833000a7abbb09dd492713 CRs-Fixed: 2042950 --- Kbuild | 2 ++ core/dp/htt/htt_tx.c | 4 ++-- core/dp/ol/inc/ol_htt_tx_api.h | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Kbuild b/Kbuild index 3a4239c090a7..c60815df89de 100644 --- a/Kbuild +++ b/Kbuild @@ -2094,6 +2094,8 @@ CDEFINES += -DDP_INTR_POLL_BASED CDEFINES += -DTX_PER_PDEV_DESC_POOL CDEFINES += -DWLAN_RX_HASH CDEFINES += -DCONFIG_DP_TRACE +CDEFINES += -DFEATURE_TSO +CDEFINES += -DTSO_DEBUG_LOG_ENABLE CDEFINES += -DDP_LFR endif diff --git a/core/dp/htt/htt_tx.c b/core/dp/htt/htt_tx.c index 53698a4cf699..14239845a378 100644 --- a/core/dp/htt/htt_tx.c +++ b/core/dp/htt/htt_tx.c @@ -1404,7 +1404,7 @@ int htt_tx_ipa_uc_detach(struct htt_pdev_t *pdev) } #endif /* IPA_OFFLOAD */ -#if defined(FEATURE_TSO) +#if defined(FEATURE_TSO) && defined(HELIUMPLUS) void htt_tx_desc_fill_tso_info(htt_pdev_handle pdev, void *desc, struct qdf_tso_info_t *tso_info) @@ -1417,7 +1417,7 @@ htt_tx_desc_fill_tso_info(htt_pdev_handle pdev, void *desc, word = (u_int32_t *)(desc); /* Initialize the TSO flags per MSDU */ - ((struct msdu_ext_desc_t *)msdu_ext_desc)->tso_flags = + msdu_ext_desc->tso_flags = tso_seg->seg.tso_flags; /* First 24 bytes (6*4) contain the TSO flags */ diff --git a/core/dp/ol/inc/ol_htt_tx_api.h b/core/dp/ol/inc/ol_htt_tx_api.h index ccd17db45d6e..4bf26a4308a1 100644 --- a/core/dp/ol/inc/ol_htt_tx_api.h +++ b/core/dp/ol/inc/ol_htt_tx_api.h @@ -838,7 +838,7 @@ void htt_tx_desc_set_chanfreq(void *htt_tx_desc, uint16_t chanfreq) *chanfreq_field_ptr = chanfreq; } -#if defined(FEATURE_TSO) +#if defined(FEATURE_TSO) && defined(HELIUMPLUS) void htt_tx_desc_fill_tso_info(htt_pdev_handle pdev, void *desc, struct qdf_tso_info_t *tso_info);