]> git.baikalelectronics.ru Git - kernel.git/commit
nvmet: Add get_mdts op for controllers
authorMax Gurtovoy <maxg@mellanox.com>
Sun, 8 Mar 2020 10:55:03 +0000 (12:55 +0200)
committerKeith Busch <kbusch@kernel.org>
Wed, 25 Mar 2020 19:51:54 +0000 (04:51 +0900)
commit69710d4646bda5fb02cfc57d77318414a43ee18e
tree7ad423894f19e1a76ca93a30270b75eaaad88bdd
parentaba3d04e2fb5b45103658b228917f32580e2fb1e
nvmet: Add get_mdts op for controllers

Some transports, such as RDMA, would like to set the Maximum Data
Transfer Size (MDTS) according to device/port/ctrl characteristics.
This will enable the transport to set the optimal MDTS according to
controller needs and device capabilities. Add a new nvmet transport
op that is called during ctrl identification. This will not effect
transports that don't implement this option. The return value of the new
op is according to the NVMe spec definition for MDTS.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Israel Rukshin <israelr@mellanox.com>
drivers/nvme/target/admin-cmd.c
drivers/nvme/target/nvmet.h