Page MenuHomeFreeBSD

linux: require vnet(9) context in ifname_bsd_to_linux_name()
ClosedPublic

Authored by glebius on Mar 2 2024, 6:27 PM.
Tags
None
Referenced Files
F137772816: D44191.id54425.diff
Tue, Nov 25, 5:02 PM
Unknown Object (File)
Fri, Nov 21, 7:28 PM
Unknown Object (File)
Tue, Nov 11, 10:11 PM
Unknown Object (File)
Sat, Nov 1, 10:20 AM
Unknown Object (File)
Tue, Oct 28, 7:48 AM
Unknown Object (File)
Mon, Oct 27, 3:03 AM
Unknown Object (File)
Oct 25 2025, 1:54 AM
Unknown Object (File)
Oct 22 2025, 11:36 PM
Subscribers

Details

Summary

This function is used by netlink(9) only. The netlink(9) taskqueue thread
runs in the vnet of the socket whose request the thread is processing
right now. This is a correct vnet and resetting it to vnet0 is incorrect.
If the function is to be used by any other caller in addition to
netlink(9), it would be caller's responsiblity to provide correct vnet(9).

PR: 277286

Diff Detail

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