mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-16 03:22:27 +00:00
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
This commit is contained in:
commit
b1bf78bfb2
197 changed files with 1788 additions and 743 deletions
|
@ -5981,11 +5981,14 @@ bool napi_complete_done(struct napi_struct *n, int work_done)
|
|||
if (work_done)
|
||||
timeout = n->dev->gro_flush_timeout;
|
||||
|
||||
/* When the NAPI instance uses a timeout and keeps postponing
|
||||
* it, we need to bound somehow the time packets are kept in
|
||||
* the GRO layer
|
||||
*/
|
||||
napi_gro_flush(n, !!timeout);
|
||||
if (timeout)
|
||||
hrtimer_start(&n->timer, ns_to_ktime(timeout),
|
||||
HRTIMER_MODE_REL_PINNED);
|
||||
else
|
||||
napi_gro_flush(n, false);
|
||||
}
|
||||
if (unlikely(!list_empty(&n->poll_list))) {
|
||||
/* If n->poll_list is not empty, we need to mask irqs */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue