HomeFreeBSD

MFC 346360: Push down INP_WLOCK slightly in tcp_ctloutput.

Description

MFC 346360: Push down INP_WLOCK slightly in tcp_ctloutput.

The inp lock is not needed for testing the V6 flag as that flag is set
once when the inp is created and never changes. For non-TCP socket
options the lock is immediately dropped after checking that flag.
This just pushes the lock down to only be acquired for TCP socket
options.

This isn't a hot-path, more a cosmetic cleanup I noticed while reading
the code.

Details

Provenance
jhbAuthored on
Parents
rS351056: Add support for PCI Device ID 0x148B in ntb_hw_amd driver.
Branches
Unknown
Tags
Unknown