qcacmn: add API to get NAPI instance corresponding to NAPI ID
Add API to get NAPI instance from NAPI ID. Handle to NAPI is required for Rx processing via GRO. Change-Id: I15535827a03953231670d4138235c4876b16e045 CRs-Fixed: 2062180
This commit is contained in:

committed by
nshrivas

parent
2f5727960b
commit
c3aeffb5e9
@@ -361,6 +361,13 @@ inline struct qca_napi_data *hif_napi_get_all(struct hif_opaque_softc *hif_ctx)
|
||||
return &(hif->napi_data);
|
||||
}
|
||||
|
||||
struct napi_struct *hif_get_napi(int napi_id, struct qca_napi_data *napid)
|
||||
{
|
||||
int id = NAPI_ID2PIPE(napi_id);
|
||||
|
||||
return &(napid->napis[id]->napi);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* hif_napi_event() - reacts to events that impact NAPI
|
||||
|
Reference in New Issue
Block a user