Page MenuHomeFreeBSD

bhyve: net_backends, automatically IFF_UP tap devices
ClosedPublic

Authored by bz on Jul 28 2021, 10:59 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 17, 9:42 AM
Unknown Object (File)
Sun, Dec 8, 7:42 PM
Unknown Object (File)
Nov 21 2024, 11:09 AM
Unknown Object (File)
Nov 18 2024, 7:08 AM
Unknown Object (File)
Nov 12 2024, 6:00 PM
Unknown Object (File)
Oct 3 2024, 11:00 PM
Unknown Object (File)
Oct 2 2024, 6:02 AM
Unknown Object (File)
Oct 2 2024, 4:17 AM

Details

Summary

Rather than relying on the sysctl net.link.tap.up_on_open automatically
try to IFF_UP the opened tap device.
When moving installations a lot in devleopment environments forgetting
to set the sysctl is annoying and having to in first place too.
If you want communications with the outside world and tell bhyve to
create an interfaces then it should be usable as well.

MFC after: 10 days

Test Plan

It worked when I tried.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bz requested review of this revision.Jul 28 2021, 10:59 PM
markj added inline comments.
usr.sbin/bhyve/net_backends.c
229

Why static?

279

Ditto below.

bz marked 2 inline comments as done.
bz edited the test plan for this revision. (Show Details)

Address @markj 's comments.

usr.sbin/bhyve/net_backends.c
229

Because I was tired at 2AM? Sorry.

Thanks, this seems reasonable to me.

This revision is now accepted and ready to land.Jul 29 2021, 3:56 PM

Thanks @markj . Are there any POLA concerns here @grehan or can this go in?

No POLA concerns: this is fine. Thanks bz.