]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
make sure ifp->if_transmit returns 0 if a buffer is enqueued.
authorLuigi Rizzo <luigi@FreeBSD.org>
Wed, 4 Jun 2014 16:57:05 +0000 (16:57 +0000)
committerLuigi Rizzo <luigi@FreeBSD.org>
Wed, 4 Jun 2014 16:57:05 +0000 (16:57 +0000)
commitc26e5fc2ed9c4367d7e45976c406fa4a5551e14a
tree19babf8e70d9cf5a9866c8304c6e436d2f0f7c3a
parent997a303f179d34f7da442d1b704c355330e867fe
make sure ifp->if_transmit returns 0 if a buffer is enqueued.
A similar fix should be applied to vmxnet, ixgbe, igb, i40e.
(some of them previously reported by Michael Tuexen)

Drivers using if_transmit are correct, and so are most of the
other drivers that reassing if_transmit.

Among other things, this bug causes panics when using netmap emulation
on top of generic drivers.

Approved by: bryanv
MFC after: 3 days
sys/dev/virtio/network/if_vtnet.c