Commit 52dbe846 authored by Heiner Kallweit's avatar Heiner Kallweit Committed by David S. Miller

r8169: use napi_complete_done return value

Consider the return value of napi_complete_done(), this allows users to
use the gro_flush_timeout sysfs attribute as an alternative to classic
interrupt coalescing.
Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent de993be0
...@@ -4596,10 +4596,8 @@ static int rtl8169_poll(struct napi_struct *napi, int budget) ...@@ -4596,10 +4596,8 @@ static int rtl8169_poll(struct napi_struct *napi, int budget)
rtl_tx(dev, tp, budget); rtl_tx(dev, tp, budget);
if (work_done < budget) { if (work_done < budget && napi_complete_done(napi, work_done))
napi_complete_done(napi, work_done);
rtl_irq_enable(tp); rtl_irq_enable(tp);
}
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