提交 7308a20e 编写于 作者: V Vladimir Kondratiev 提交者: Kalle Valo

wil6210: NAPI completion refactor

It is expected that driver completes NAPI when less than
full budget is consumed.

Fulfill this requirement.
Signed-off-by: NVladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
上级 9c510265
...@@ -82,7 +82,7 @@ static int wil6210_netdev_poll_rx(struct napi_struct *napi, int budget) ...@@ -82,7 +82,7 @@ static int wil6210_netdev_poll_rx(struct napi_struct *napi, int budget)
wil_rx_handle(wil, &quota); wil_rx_handle(wil, &quota);
done = budget - quota; done = budget - quota;
if (done <= 1) { /* burst ends - only one packet processed */ if (done < budget) {
napi_complete(napi); napi_complete(napi);
wil6210_unmask_irq_rx(wil); wil6210_unmask_irq_rx(wil);
wil_dbg_txrx(wil, "NAPI RX complete\n"); wil_dbg_txrx(wil, "NAPI RX complete\n");
...@@ -110,7 +110,7 @@ static int wil6210_netdev_poll_tx(struct napi_struct *napi, int budget) ...@@ -110,7 +110,7 @@ static int wil6210_netdev_poll_tx(struct napi_struct *napi, int budget)
tx_done += wil_tx_complete(wil, i); tx_done += wil_tx_complete(wil, i);
} }
if (tx_done <= 1) { /* burst ends - only one packet processed */ if (tx_done < budget) {
napi_complete(napi); napi_complete(napi);
wil6210_unmask_irq_tx(wil); wil6210_unmask_irq_tx(wil);
wil_dbg_txrx(wil, "NAPI TX complete\n"); wil_dbg_txrx(wil, "NAPI TX complete\n");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册