forked from openbsd/ports
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ack the interrupt first, so that it can receive interrupts for new
arrival packets. diff from IIJ. ok dlg
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]> | ||
|
@@ -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); | ||
} | ||
|
||
|