summaryrefslogtreecommitdiff
path: root/sys/dev/virtio/network
diff options
context:
space:
mode:
authorLuigi Rizzo <luigi@FreeBSD.org>2014-06-04 16:57:05 +0000
committerLuigi Rizzo <luigi@FreeBSD.org>2014-06-04 16:57:05 +0000
commitc26e5fc2ed9c4367d7e45976c406fa4a5551e14a (patch)
tree19babf8e70d9cf5a9866c8304c6e436d2f0f7c3a /sys/dev/virtio/network
parent997a303f179d34f7da442d1b704c355330e867fe (diff)
Notes
Diffstat (limited to 'sys/dev/virtio/network')
-rw-r--r--sys/dev/virtio/network/if_vtnet.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/virtio/network/if_vtnet.c b/sys/dev/virtio/network/if_vtnet.c
index 33576d857ea8..34c146433337 100644
--- a/sys/dev/virtio/network/if_vtnet.c
+++ b/sys/dev/virtio/network/if_vtnet.c
@@ -2262,7 +2262,6 @@ vtnet_txq_mq_start_locked(struct vtnet_txq *txq, struct mbuf *m)
while ((m = drbr_peek(ifp, br)) != NULL) {
if (virtqueue_full(vq)) {
drbr_putback(ifp, br, m);
- error = ENOBUFS;
break;
}
@@ -2285,7 +2284,7 @@ vtnet_txq_mq_start_locked(struct vtnet_txq *txq, struct mbuf *m)
txq->vtntx_watchdog = VTNET_TX_TIMEOUT;
}
- return (error);
+ return (0);
}
static int