mirror of https://gitee.com/openkylin/linux.git
cxgb4: Use napi_complete_done() api in napi handler
Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
0ac5b708e3
commit
812787b8e4
|
@ -2288,7 +2288,7 @@ static int napi_rx_handler(struct napi_struct *napi, int budget)
|
||||||
if (likely(work_done < budget)) {
|
if (likely(work_done < budget)) {
|
||||||
int timer_index;
|
int timer_index;
|
||||||
|
|
||||||
napi_complete(napi);
|
napi_complete_done(napi, work_done);
|
||||||
timer_index = QINTR_TIMER_IDX_G(q->next_intr_params);
|
timer_index = QINTR_TIMER_IDX_G(q->next_intr_params);
|
||||||
|
|
||||||
if (q->adaptive_rx) {
|
if (q->adaptive_rx) {
|
||||||
|
|
Loading…
Reference in New Issue