Page MenuHomeFreeBSD

Per-VNET flag on netir and cleanup
ClosedPublic

Authored by bz on Jun 2 2016, 2:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 8, 1:34 PM
Unknown Object (File)
Mon, Nov 4, 5:30 AM
Unknown Object (File)
Mon, Nov 4, 5:30 AM
Unknown Object (File)
Mon, Nov 4, 5:30 AM
Unknown Object (File)
Mon, Nov 4, 5:30 AM
Unknown Object (File)
Mon, Nov 4, 5:04 AM
Unknown Object (File)
Mon, Oct 28, 8:16 PM
Unknown Object (File)
Sep 27 2024, 4:17 PM
Subscribers

Details

Summary

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.
Update netisr consumers to (de)register on a per-VNET start/teardown using
VNET_SYS(UN)INIT functionality.
Upon disabling netisr processing for a VNET drain the netisr queue.

The change should be transparent for non-VIMAGE kernels.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bz retitled this revision from to Per-VNET flag on netir and cleanup.
bz updated this object.
bz edited the test plan for this revision. (Show Details)
bz added reviewers: gnn, rwatson, emaste, zec.
bz added a subscriber: network.
gnn edited edge metadata.
This revision is now accepted and ready to land.Jun 2 2016, 5:47 PM
hiren requested changes to this revision.Jun 2 2016, 6:21 PM
hiren added a reviewer: hiren.
hiren added a subscriber: hiren.

Can you please update netisr manpage?

This revision now requires changes to proceed.Jun 2 2016, 6:21 PM
bz edited edge metadata.

Updating netisr man page as requested.

Update epair(4) to nly hide the netisr call under VIMAGE on SYSUNINT
as we might unload the module using it in non-VIMAGE cases as well
(theoretically).

Just leaving a note from out of band communication.

share/man/man9/netisr.9
93 ↗(On Diff #17270)

Changed s/which/that/ based on a private comment from @gnn.

gnn edited edge metadata.
This revision was automatically updated to reflect the committed changes.