diff --git a/hif/inc/hif.h b/hif/inc/hif.h index a61470f0d987..76a08a995e3b 100644 --- a/hif/inc/hif.h +++ b/hif/inc/hif.h @@ -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, diff --git a/hif/src/hif_main.h b/hif/src/hif_main.h index ddbcf4e0de8f..7ec86768f3a9 100644 --- a/hif/src/hif_main.h +++ b/hif/src/hif_main.h @@ -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