Skip to content

Commit e62b2fd

Browse files
hkallweitdavem330
authored andcommitted
r8169: change irq handler to always trigger NAPI polling
This check isn't really needed and we can simplify the code and save some CPU cycles by removing it. Only in case of an error none of these bits are set, and calling the NAPI callback doesn't hurt in this case. Signed-off-by: Heiner Kallweit <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 0ed1d3d commit e62b2fd

File tree

1 file changed

+2
-4
lines changed
  • drivers/net/ethernet/realtek

1 file changed

+2
-4
lines changed

drivers/net/ethernet/realtek/r8169.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6380,10 +6380,8 @@ static irqreturn_t rtl8169_interrupt(int irq, void *dev_instance)
63806380
set_bit(RTL_FLAG_TASK_RESET_PENDING, tp->wk.flags);
63816381
}
63826382

6383-
if (status & (RTL_EVENT_NAPI | LinkChg)) {
6384-
rtl_irq_disable(tp);
6385-
napi_schedule_irqoff(&tp->napi);
6386-
}
6383+
rtl_irq_disable(tp);
6384+
napi_schedule_irqoff(&tp->napi);
63876385
out:
63886386
rtl_ack_events(tp, status);
63896387

0 commit comments

Comments
 (0)