Commit 148604e7 authored by Alex Elder's avatar Alex Elder Committed by Jakub Kicinski

net: ipa: heed napi_complete() return value

Pay attention to the return value of napi_complete(), completing
polling only if it returns true.

Just use napi rather than &channel->napi as the argument passed to
napi_complete().
Signed-off-by: default avatarAlex Elder <elder@linaro.org>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent c80c4a1e
...@@ -1555,10 +1555,8 @@ static int gsi_channel_poll(struct napi_struct *napi, int budget) ...@@ -1555,10 +1555,8 @@ static int gsi_channel_poll(struct napi_struct *napi, int budget)
gsi_trans_complete(trans); gsi_trans_complete(trans);
} }
if (count < budget) { if (count < budget && napi_complete(napi))
napi_complete(&channel->napi);
gsi_irq_ieob_enable(channel->gsi, channel->evt_ring_id); gsi_irq_ieob_enable(channel->gsi, channel->evt_ring_id);
}
return count; return count;
} }
......
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