Commit e7b95691 authored by Michael Chan's avatar Michael Chan Committed by David S. Miller

bnxt_en: Use napi_complete_done()

For better busy polling and GRO support.  Do not re-arm IRQ if
napi_complete_done() returns false.
Signed-off-by: default avatarMichael Chan <michael.chan@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b356a2e7
...@@ -1778,8 +1778,9 @@ static int bnxt_poll(struct napi_struct *napi, int budget) ...@@ -1778,8 +1778,9 @@ static int bnxt_poll(struct napi_struct *napi, int budget)
break; break;
if (!bnxt_has_work(bp, cpr)) { if (!bnxt_has_work(bp, cpr)) {
napi_complete(napi); if (napi_complete_done(napi, work_done))
BNXT_CP_DB_REARM(cpr->cp_doorbell, cpr->cp_raw_cons); BNXT_CP_DB_REARM(cpr->cp_doorbell,
cpr->cp_raw_cons);
break; break;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment