HomeFreeBSD

Introduce a per-VNET flag to enable/disable netisr prcessing on that VNET.

Description

Introduce a per-VNET flag to enable/disable netisr prcessing on that VNET.
Add accessor functions to toggle the state per VNET.
The base system (vnet0) will always enable itself with the normal
registration. We will share the registered protocol handlers in all
VNETs minimising duplication and management.
Upon disabling netisr processing for a VNET drain the netisr queue from
packets for that VNET.

Update netisr consumers to (de)register on a per-VNET start/teardown using
VNET_SYS(UN)INIT functionality.

The change should be transparent for non-VIMAGE kernels.

Reviewed by: gnn (, hiren)
Obtained from: projects/vnet
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D6691

Details

Provenance
bzAuthored on
Reviewer
gnn
Differential Revision
D6691: Per-VNET flag on netir and cleanup
Parents
rS301269: xen-blkback: fix error path on failed attach
Branches
Unknown
Tags
Unknown