Skip to content

Commit

Permalink
Ack the interrupt first, so that it can receive interrupts for new
Browse files Browse the repository at this point in the history
arrival packets.  diff from IIJ.

ok dlg
  • Loading branch information
yasuoka committed Nov 9, 2019
1 parent 4c79ef7 commit 8870c09
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sys/dev/pci/if_vic.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $OpenBSD: if_vic.c,v 1.98 2017/07/12 14:25:36 mikeb Exp $ */
/* $OpenBSD: if_vic.c,v 1.99 2019/11/09 03:53:44 yasuoka Exp $ */

/*
* Copyright (c) 2006 Reyk Floeter <[email protected]>
Expand Down Expand Up @@ -796,12 +796,12 @@ vic_intr(void *arg)
struct vic_softc *sc = (struct vic_softc *)arg;
int q;

vic_write(sc, VIC_CMD, VIC_CMD_INTR_ACK);

for (q = 0; q < VIC_NRXRINGS; q++)
vic_rx_proc(sc, q);
vic_tx_proc(sc);

vic_write(sc, VIC_CMD, VIC_CMD_INTR_ACK);

return (-1);
}

Expand Down

0 comments on commit 8870c09

Please sign in to comment.