qcacmn: Compilation fix without FEATURE_NAPI
Fix compilation failures with NAPI disabled. Change-Id: I5ebd122436b7fc2f85b09880eddd884ca114e121 CRs-Fixed: 2080092
This commit is contained in:
committed by
snandini
parent
a78b4bfb67
commit
9a4ddd6a40
@@ -20,6 +20,8 @@
|
||||
#include <ce_main.h>
|
||||
#include <hif_irq_affinity.h>
|
||||
|
||||
static struct hif_exec_context *hif_exec_tasklet_create(void);
|
||||
|
||||
/**
|
||||
* hif_print_napi_stats() - print NAPI stats
|
||||
* @hif_ctx: hif context
|
||||
|
@@ -97,6 +97,13 @@ enum qca_napi_event {
|
||||
#define NAPI_PIPE2ID(p) ((p)+1)
|
||||
|
||||
void *hif_napi_get_lro_info(struct hif_opaque_softc *hif_hdl, int napi_id);
|
||||
|
||||
enum qca_blacklist_op {
|
||||
BLACKLIST_QUERY,
|
||||
BLACKLIST_OFF,
|
||||
BLACKLIST_ON
|
||||
};
|
||||
|
||||
#ifdef FEATURE_NAPI
|
||||
|
||||
/**
|
||||
@@ -146,12 +153,6 @@ int hif_napi_poll(struct hif_opaque_softc *hif_ctx,
|
||||
#define HNC_ACT_COLLAPSE (1)
|
||||
#define HNC_ACT_DISPERSE (-1)
|
||||
|
||||
enum qca_blacklist_op {
|
||||
BLACKLIST_QUERY,
|
||||
BLACKLIST_OFF,
|
||||
BLACKLIST_ON
|
||||
};
|
||||
|
||||
/**
|
||||
* Local interface to HIF implemented functions of NAPI CPU affinity management.
|
||||
* Note:
|
||||
@@ -173,15 +174,6 @@ enum qca_blacklist_op {
|
||||
|
||||
#define NAPI_DEBUG(fmt, ...) /* NO-OP */
|
||||
|
||||
static inline int hif_napi_cpu_init(struct hif_opaque_softc *hif)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
static inline int hif_napi_cpu_deinit(struct hif_opaque_softc *hif)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline int hif_napi_create(struct hif_opaque_softc *hif,
|
||||
uint8_t pipe_id,
|
||||
int (*poll)(struct napi_struct *, int),
|
||||
|
Reference in New Issue
Block a user