[PATCH 1/1] nvme: introduce nvme_transport_sgl_desc structure

Max Gurtovoy mgurtovoy at nvidia.com
Mon Jul 19 03:04:03 PDT 2021


On 7/19/2021 12:57 PM, Christoph Hellwig wrote:
> On Mon, Jul 19, 2021 at 12:53:09PM +0300, Max Gurtovoy wrote:
>> Currently the tcp and fc transports use nvme_sgl_desc structure to
>> describe transport data blocks. Replace it with a new structure that
>> describes the Transport SGL Data Block according to the NVMe
>> specification.
> What is the point?  Note that we should probably still clear the
> reserved space anyway.

The point is to use the correct structure from the spec and not enforce 
some weird casting.

This makes the code more readable.

Reserved space should be treated as for all other reserved fields in the 
spec.





More information about the Linux-nvme mailing list