]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: add a helper to check ctrl sgl support
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Thu, 10 Jun 2021 01:28:23 +0000 (18:28 -0700)
committerChristoph Hellwig <hch@lst.de>
Thu, 17 Jun 2021 13:51:18 +0000 (15:51 +0200)
commitc547ba30c415bafbfb20df435cfbd660829d9c44
tree4be349c260b92bfd242e3d3b9d5b25dfbd4cf56a
parent428bfd44d9ebb9cad9b8b4b381c8441c3c841b7c
nvme: add a helper to check ctrl sgl support

For various transports such as fc/tcp/pci it is common to check if
NVMe SGLs are supported or not by the controller.

In this preparation patch we add a helper to avoid the open coding of
such checks in the various transport.

Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/nvme.h