Skip to content

Commit 9fbb4a7

Browse files
hkallweitdavem330
authored andcommitted
r8169: handle tx before rx in napi poll
Cleaning up tx descriptors first increases the chance that rtl_rx() can allocate new skb's from the cache. Signed-off-by: Heiner Kallweit <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 3b23a32 commit 9fbb4a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/ethernet/realtek/r8169_main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4587,10 +4587,10 @@ static int rtl8169_poll(struct napi_struct *napi, int budget)
45874587
struct net_device *dev = tp->dev;
45884588
int work_done;
45894589

4590-
work_done = rtl_rx(dev, tp, budget);
4591-
45924590
rtl_tx(dev, tp, budget);
45934591

4592+
work_done = rtl_rx(dev, tp, budget);
4593+
45944594
if (work_done < budget && napi_complete_done(napi, work_done))
45954595
rtl_irq_enable(tp);
45964596

0 commit comments

Comments
 (0)