HomeFreeBSD

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

Description

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

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).

Reviewed by: melifaro, dchagin
Differential Revision: https://reviews.freebsd.org/D44191
PR: 277286

(cherry picked from commit 2f5a315b307447f91891c96fb23c7333fa406f2f)

Details

Provenance
glebiusAuthored on Mar 3 2024, 8:56 PM
Reviewer
melifaro
Differential Revision
D44191: linux: require vnet(9) context in ifname_bsd_to_linux_name()
Parents
rGfa397e50fd88: Hyper-V: vPCI: fix cpu id mis-mapping in vmbus_pcib_map_msi()
Branches
Unknown
Tags
Unknown