Skip to content

Commit

Permalink
r8169: use napi_complete_done return value
Browse files Browse the repository at this point in the history
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: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
hkallweit authored and davem330 committed Aug 19, 2020
1 parent de993be commit 52dbe84
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/net/ethernet/realtek/r8169_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4596,10 +4596,8 @@ static int rtl8169_poll(struct napi_struct *napi, int budget)

rtl_tx(dev, tp, budget);

if (work_done < budget) {
napi_complete_done(napi, work_done);
if (work_done < budget && napi_complete_done(napi, work_done))
rtl_irq_enable(tp);
}

return work_done;
}
Expand Down

0 comments on commit 52dbe84

Please sign in to comment.