reorder ops in sk_start to avoid possibly rolling back ifq_deq.
authordlg <dlg@openbsd.org>
Thu, 1 Jun 2017 23:17:01 +0000 (23:17 +0000)
committerdlg <dlg@openbsd.org>
Thu, 1 Jun 2017 23:17:01 +0000 (23:17 +0000)
commita79cb044b6e71bc5058d4f279f2c10c1039f2303
treebc52ee2b5704e7f3d578c075334c7ae386aa3cb1
parent35e955906efae14e6017afb833ca781a38ef0ad6
reorder ops in sk_start to avoid possibly rolling back ifq_deq.

instead of checking for space after beggining to deq a packet, check
for space before committing to handling a packet. this means we
can use ifq_dequeue instead of ifq_deq_begin/commit/rollback.

ok mikeb@
sys/dev/pci/if_sk.c