Recollect TX/RX descriptors if we are going to switch back to TX/RX interrupts,
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 28 Oct 2008 07:30:49 +0000 (07:30 +0000)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 28 Oct 2008 07:30:49 +0000 (07:30 +0000)
commit46d50f4bcaf72b2372bdad2c6d81eee847456307
tree8833ce987a8d7df4ec132a4890e272829545351c
parent64ebeab7ec942e797823b819aaa5c11fca8ddfb0
Recollect TX/RX descriptors if we are going to switch back to TX/RX interrupts,
mainly to avoid the _possible_ race between turning on TX/RX interrupts and
asserting TX/RX interrupt by hardware.  Though nfe(4) does not seem to suffer
the problem, which I have seen on re(4), we still apply the same fix here;
better safe than sorry.
sys/dev/netif/nfe/if_nfe.c