qcacmn: Masked out the Host Tx Desc allocation for NSS offload

Masking out the tx_desc and tx_ext_desc allocations for NSS offloaded
radios.
CRs-Fixed: 2188417

Change-Id: Ibe949a899da1dd2c815ce6a10c355f7ee5976e7a
This commit is contained in:
Aniruddha Paul
2018-02-11 19:40:41 +05:30
committed by snandini
orang tua 8281964dfe
melakukan 9d7dc27fe2
4 mengubah file dengan 81 tambahan dan 2 penghapusan

Melihat File

@@ -584,21 +584,41 @@ int wlan_cfg_get_num_tx_desc_pool(struct wlan_cfg_dp_soc_ctxt *cfg)
return cfg->num_tx_desc_pool;
}
void wlan_cfg_set_num_tx_desc_pool(struct wlan_cfg_dp_soc_ctxt *cfg, int num_pool)
{
cfg->num_tx_desc_pool = num_pool;
}
int wlan_cfg_get_num_tx_ext_desc_pool(struct wlan_cfg_dp_soc_ctxt *cfg)
{
return cfg->num_tx_ext_desc_pool;
}
void wlan_cfg_set_num_tx_ext_desc_pool(struct wlan_cfg_dp_soc_ctxt *cfg, int num_pool)
{
cfg->num_tx_ext_desc_pool = num_pool;
}
int wlan_cfg_get_num_tx_desc(struct wlan_cfg_dp_soc_ctxt *cfg)
{
return cfg->num_tx_desc;
}
void wlan_cfg_set_num_tx_desc(struct wlan_cfg_dp_soc_ctxt *cfg, int num_desc)
{
cfg->num_tx_desc = num_desc;
}
int wlan_cfg_get_num_tx_ext_desc(struct wlan_cfg_dp_soc_ctxt *cfg)
{
return cfg->num_tx_ext_desc;
}
void wlan_cfg_set_num_tx_ext_desc(struct wlan_cfg_dp_soc_ctxt *cfg, int num_ext_desc)
{
cfg->num_tx_ext_desc = num_ext_desc;
}
uint32_t wlan_cfg_max_peer_id(struct wlan_cfg_dp_soc_ctxt *cfg)
{
/* TODO: This should be calculated based on target capabilities */

Melihat File

@@ -1,6 +1,6 @@
/*
* * Copyright (c) 2013-2018 The Linux Foundation. All rights reserved.
*
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
* above copyright notice and this permission notice appear in all
@@ -456,6 +456,14 @@ int wlan_cfg_pkt_type(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
*/
int wlan_cfg_get_num_tx_desc_pool(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
/*
* wlan_cfg_set_num_tx_desc_pool() - Set the number of Tx Descriptor pools for the
* device
* @wlan_cfg_ctx - Configuration Handle
* @num_pool - Number of pool
*/
void wlan_cfg_set_num_tx_desc_pool(struct wlan_cfg_dp_soc_ctxt *cfg, int num_pool);
/*
* wlan_cfg_get_num_tx_ext_desc_pool() - Number of Tx MSDU ext Descriptor
* pools
@@ -466,6 +474,14 @@ int wlan_cfg_get_num_tx_desc_pool(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
int wlan_cfg_get_num_tx_ext_desc_pool(
struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
/*
* wlan_cfg_set_num_tx_ext_desc_pool() - Set the number of Tx MSDU ext Descriptor
* pools
* @wlan_cfg_ctx - Configuration Handle
* @num_pool - Number of pool
*/
void wlan_cfg_set_num_tx_ext_desc_pool(struct wlan_cfg_dp_soc_ctxt *cfg, int num_pool);
/*
* wlan_cfg_get_num_tx_desc() - Number of Tx Descriptors per pool
* @wlan_cfg_ctx - Configuration Handle
@@ -474,6 +490,14 @@ int wlan_cfg_get_num_tx_ext_desc_pool(
*/
int wlan_cfg_get_num_tx_desc(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
/*
* wlan_cfg_set_num_tx_desc() - Set the number of Tx Descriptors per pool
*
* @wlan_cfg_ctx - Configuration Handle
* @num_desc: Number of descriptor
*/
void wlan_cfg_set_num_tx_desc(struct wlan_cfg_dp_soc_ctxt *cfg, int num_desc);
/*
* wlan_cfg_get_num_tx_ext_desc() - Number of Tx MSDU extension Descriptors
* per pool
@@ -483,6 +507,14 @@ int wlan_cfg_get_num_tx_desc(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
*/
int wlan_cfg_get_num_tx_ext_desc(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
/*
* wlan_cfg_set_num_tx_ext_desc() - Set the number of Tx MSDU extension Descriptors
* per pool
* @wlan_cfg_ctx - Configuration Handle
* @num_desc: Number of descriptor
*/
void wlan_cfg_set_num_tx_ext_desc(struct wlan_cfg_dp_soc_ctxt *cfg, int num_ext_desc);
/*
* wlan_cfg_max_peer_id() - Get maximum peer ID
* @cfg: Configuration Handle