qcacmn: Make MAX_NUM_RECEIVES same for all cases
MAX_NUM_RECEIVES, the maximum number of messages to be processed by the bottom-half before control is returned to kernel was defined as different (but close) numbers for NAPI and non-NAPI cases (based on NAPI feature flag), 100/1000 for non-NAPI and 128/1024 for NAPI cases. With this update the value is set to 128/1024 regardless of NAPI feature being compiled or not. Change-Id: I152afd30b302d52426c07ae39a95af388ba0ae52 Acked-by: Orhan K AKYILDIZ <oka@qca.qualcomm.com> CRs-Fixed: 1012336
This commit is contained in:

committed by
Akash Patel

부모
32afe374d8
커밋
82b8996739
@@ -82,13 +82,13 @@ typedef void *hif_handle_t;
|
||||
struct CE_state;
|
||||
#define CE_COUNT_MAX 12
|
||||
|
||||
/* These numbers are selected so that the product is close to current
|
||||
higher limit of packets HIF services at one shot (1000) */
|
||||
#ifdef CONFIG_SLUB_DEBUG_ON
|
||||
#define QCA_NAPI_BUDGET 64
|
||||
#define QCA_NAPI_DEF_SCALE 2
|
||||
#else /* PERF build */
|
||||
#define QCA_NAPI_BUDGET 64
|
||||
#define QCA_NAPI_DEF_SCALE 16
|
||||
/* NOTE: This is to adapt non-NAPI solution to use
|
||||
the same "budget" as NAPI. Will be removed
|
||||
`once decision about NAPI is made */
|
||||
#endif /* SLUB_DEBUG_ON */
|
||||
#define HIF_NAPI_MAX_RECEIVES (QCA_NAPI_BUDGET * QCA_NAPI_DEF_SCALE)
|
||||
|
||||
/* NOTE: "napi->scale" can be changed,
|
||||
|
@@ -61,15 +61,8 @@
|
||||
#ifdef QCA_WIFI_3_0
|
||||
#define DISABLE_L1SS_STATES 1
|
||||
#endif
|
||||
#ifdef CONFIG_SLUB_DEBUG_ON
|
||||
#define MAX_NUM_OF_RECEIVES 100 /* Maximum number of Rx buf to process before*
|
||||
* break out in SLUB debug builds */
|
||||
#elif defined(FEATURE_NAPI)
|
||||
|
||||
#define MAX_NUM_OF_RECEIVES HIF_NAPI_MAX_RECEIVES
|
||||
#else /* no SLUBS, no NAPI */
|
||||
/* Maximum number of Rx buf to process before break out */
|
||||
#define MAX_NUM_OF_RECEIVES 1000
|
||||
#endif /* SLUB_DEBUG_ON / FEATURE_NAPI */
|
||||
|
||||
#ifdef QCA_WIFI_3_0_ADRASTEA
|
||||
#define ADRASTEA_BU 1
|
||||
|
Reference in New Issue
Block a user