Make sure that tx_buffer->next_eop is properly set before we bump the number
authorkettenis <kettenis@openbsd.org>
Tue, 6 Oct 2015 15:21:16 +0000 (15:21 +0000)
committerkettenis <kettenis@openbsd.org>
Tue, 6 Oct 2015 15:21:16 +0000 (15:21 +0000)
commit8766dee5da4701cfc708b07f12a8e29bee83ecd2
treeaf2f42e14d8bcae61d02f98f575340d688c98e75
parent15464365dd70fe84e26ba515ba3da12f5c34c2f7
Make sure that tx_buffer->next_eop is properly set before we bump the number
of available descriptors, such that the interrupt handler doesn't attempt
to complete partially initialized descriptors.  Seems to fix the watchdog
timeouts reported by various people.

Tested by Mattieu Baptiste and Gregor Best.
ok mikeb@
sys/dev/pci/if_em.c