Commit a3307f9b authored by hayeswang's avatar hayeswang Committed by David S. Miller

r8152: replace napi_complete with napi_complete_done

Change from using napi_complete to napi_complete_done to allow for the
use of gro_flush_timeout in tuning network processing.
Signed-off-by: default avatarHayes Wang <hayeswang@realtek.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 74544458
...@@ -1938,7 +1938,8 @@ static int r8152_poll(struct napi_struct *napi, int budget) ...@@ -1938,7 +1938,8 @@ static int r8152_poll(struct napi_struct *napi, int budget)
bottom_half(tp); bottom_half(tp);
if (work_done < budget) { if (work_done < budget) {
napi_complete(napi); if (!napi_complete_done(napi, work_done))
goto out;
if (!list_empty(&tp->rx_done)) if (!list_empty(&tp->rx_done))
napi_schedule(napi); napi_schedule(napi);
else if (!skb_queue_empty(&tp->tx_queue) && else if (!skb_queue_empty(&tp->tx_queue) &&
...@@ -1946,6 +1947,7 @@ static int r8152_poll(struct napi_struct *napi, int budget) ...@@ -1946,6 +1947,7 @@ static int r8152_poll(struct napi_struct *napi, int budget)
napi_schedule(napi); napi_schedule(napi);
} }
out:
return work_done; return work_done;
} }
......
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