HomeFreeBSD

MFC r360483,360484: Make nvmecontrol work with nda like it does with

Description

MFC r360483,360484: Make nvmecontrol work with nda like it does with
nvd, and associated bits.

This commit changes the size of 'struct ccb_pathinq_settings_nvme', which
would normally risk breaking kernel ABI; however, that structure is only
ever used as part of a union with larger structures -- so nothing really
changes size.

r360483:

Return the nvmeX device associated with the ndaX device.

Add the nvmeX device to the XPT_PATH_INQ nvme specific
information. while one could figure this out by looking up the
domain:bus:slot:function, it's a lot easier to have the SIM set it
directly since the sim knows this.

r360484:

Implement the NVME_GET_NSID and NVME_PASSTHROUGH_CMD ioctls

With these two ioctls implemented in the nda driver, nvmecontrol now
works with nda just like it does with nvd. It eliminates the need to
jump through odd hoops to get this data.

Discussed with: imp

Details

Provenance
cpercivaAuthored on
Parents
rS366178: MFC r365898: Move finalize_components_config from get_params to cmd_*.
Branches
Unknown
Tags
Unknown