Page MenuHomeFreeBSD

bhyve: Split backends into separate files
ClosedPublic

Authored by markj on Nov 20 2023, 11:07 PM.
Tags
None
Referenced Files
F142201174: D42689.diff
Sat, Jan 17, 4:08 AM
Unknown Object (File)
Dec 11 2025, 2:37 AM
Unknown Object (File)
Dec 1 2025, 4:34 PM
Unknown Object (File)
Dec 1 2025, 11:27 AM
Unknown Object (File)
Nov 25 2025, 11:16 AM
Unknown Object (File)
Nov 7 2025, 8:43 AM
Unknown Object (File)
Nov 6 2025, 10:52 PM
Unknown Object (File)
Nov 6 2025, 2:45 AM

Details

Summary

Currently the net_backend structure definition is private to
net_backends.c, so all of the backend definitions are there. While
adding a new backend to use libslirp, it was noted that this file is
somewhat cluttered. Move the netmap and netgraph backends to their own
files and clean up includes a bit. No functional change intended.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 54529
Build 51418: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Nov 21 2023, 7:28 AM
jhb added inline comments.
usr.sbin/bhyve/net_backends.h
98

Should this be in net_backends_priv.h instead?

usr.sbin/bhyve/net_backends.h
98

Yes, will fix before commit.

This revision was automatically updated to reflect the committed changes.