HomeFreeBSD

MFC r352841

Description

MFC r352841

bhyve: support for enabling/disabling the net backend

Extend the net backend interface with two functions, namely netbe_rx_disable()
and netbe_rx_enable(), which can be used by the net device emulators to stop
the backend from invoking the receive callback. This is useful for device
emulators, i.e., on hardware resets or to implement receive backpressure.
The mevent module has been extendede to support the addition of a disabled
event. To prevent race conditions, the net backends will start with receive
operation disabled. A follow-up patch will use the new functionalities in
the virtio-net device.

Reviewed by: jhb, markj
Differential Revision: https://reviews.freebsd.org/D20973

Details

Provenance
vmaffioneAuthored on
Reviewer
jhb
Differential Revision
D20973: bhyve: support for enabling/disabling the net backend
Parents
rS353120: Correct grammos and typos.
Branches
Unknown
Tags
Unknown