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
F109662461: D44191.id135324.diff
Sat, Feb 8, 2:18 AM
Unknown Object (File)
Tue, Feb 4, 9:24 PM
Unknown Object (File)
Tue, Feb 4, 6:58 AM
Unknown Object (File)
Tue, Feb 4, 3:36 AM
Unknown Object (File)
Thu, Jan 30, 1:51 PM
Unknown Object (File)
Thu, Jan 9, 7:37 PM
Unknown Object (File)
Dec 18 2024, 2:36 AM
Unknown Object (File)
Dec 8 2024, 11:07 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 Not Applicable
Unit
Tests Not Applicable