-/* $OpenBSD: if_vio.c,v 1.29 2015/04/26 12:19:24 sf Exp $ */
+/* $OpenBSD: if_vio.c,v 1.30 2015/04/26 12:27:29 sf Exp $ */
/*
* Copyright (c) 2012 Stefan Fritsch, Alexander Fiveg.
if ((ifp->if_flags & (IFF_RUNNING|IFF_OACTIVE)) != IFF_RUNNING)
return;
+ if (IFQ_IS_EMPTY(&ifp->if_snd))
+ return;
again:
for (;;) {
int r;
r = vio_txeof(vq);
- if (!IFQ_IS_EMPTY(&ifp->if_snd))
- vio_start(ifp);
+ vio_start(ifp);
return r;
}