diff options
| author | Thirumalai Pachamuthu <tpachamu@qti.qualcomm.com> | 2013-10-10 02:06:52 +0530 |
|---|---|---|
| committer | Madan Mohan Koyyalamudi <mkoyyala@qca.qualcomm.com> | 2013-10-23 20:04:47 -0700 |
| commit | 2fa9676b02da1aed14fd6547d2974a2b479ceae9 (patch) | |
| tree | fc7784eb55f4edb5b41b640f936bf2410148f4d3 | |
| parent | 4ce88dc8047c60eca3fcef7bb6a9a4439f59ec45 (diff) | |
cld: common: Modify the vdev and offload peer conf
Modified the number of vdev as 3 from 4 as per the
new PRD and modified the number of offload peers
as (number of vdev + 1) and number reorder buffer as 4.
The current firmware implementation requires the number of offload peers
should be (number of vdevs + 1).
The reason for this is the firmware clubbed the self peer and offload peer
in the same pool. So if the firmware wanted to support n vdevs then the
number of offload peer must be n+1 of which n buffers will be used for
self peer and the remaining 1 is used for offload peer to support chatter
mode for single STA.
Technically the macro should be 1 however the current firmware
requires n+1.
TODO: This MACRO need to be modified in the future, if the firmware
modified to allocate buffers for self peer and offload peer
independently.
CRs-Fixed: 556241
Change-Id: I6272bd0154b1623b9aa0435108f1988bb4f21728
| -rw-r--r-- | CORE/SERVICES/COMMON/wlan_tgt_def_config.h | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/CORE/SERVICES/COMMON/wlan_tgt_def_config.h b/CORE/SERVICES/COMMON/wlan_tgt_def_config.h index 775417762e08..ddc4980c5bd7 100644 --- a/CORE/SERVICES/COMMON/wlan_tgt_def_config.h +++ b/CORE/SERVICES/COMMON/wlan_tgt_def_config.h @@ -35,8 +35,8 @@ /* * default limit of 8 VAPs per device. */ -/* Rome PRD support 5 vdevs */ -#define CFG_TGT_NUM_VDEV 4 +/* Rome PRD support 3 vdevs */ +#define CFG_TGT_NUM_VDEV 3 /* * We would need 1 AST entry per peer. Scale it by a factor of 2 to minimize hash collisions. @@ -74,12 +74,29 @@ * reorder buffering, PN checking need to be done in target. This determines * maximum number of peers suported by target in offload mode */ -#define CFG_TGT_NUM_OFFLOAD_PEERS (CFG_TGT_NUM_PEERS + CFG_TGT_NUM_VDEV) + +/* + * The current firmware implementation requires the number of offload peers + * should be (number of vdevs + 1). + + * The reason for this is the firmware clubbed the self peer and offload peer + * in the same pool. So if the firmware wanted to support n vdevs then the + * number of offload peer must be n+1 of which n buffers will be used for + * self peer and the remaining 1 is used for offload peer to support chatter + * mode for single STA. + + * Technically the macro should be 1 however the current firmware requires n+1. + + * TODO: This MACRO need to be modified in the future, if the firmware modified + * to allocate buffers for self peer and offload peer independently. + */ + +#define CFG_TGT_NUM_OFFLOAD_PEERS (CFG_TGT_NUM_VDEV+1) /* * Number of reorder buffers used in offload mode */ -#define CFG_TGT_NUM_OFFLOAD_REORDER_BUFFS 8 +#define CFG_TGT_NUM_OFFLOAD_REORDER_BUFFS 4 /* * keys per peer node |
