]> www.infradead.org Git - users/dwmw2/linux.git/commit
nvmet: Introduce get/set_feature controller operations
authorDamien Le Moal <dlemoal@kernel.org>
Sat, 4 Jan 2025 04:59:45 +0000 (13:59 +0900)
committerKeith Busch <kbusch@kernel.org>
Sat, 11 Jan 2025 03:30:48 +0000 (19:30 -0800)
commit08461535a9cd9757dadbae0ee3f3bbdd6e66ba09
treea6a32b8e2089d57f9a43043805547760b99783ba
parent1ad8630ffa95ae48b2a9a079d124de452569f2f8
nvmet: Introduce get/set_feature controller operations

The implementation of some features cannot always be done generically by
the target core code. Arbitraion and IRQ coalescing features are
examples of such features: their implementation must be provided (at
least partially) by the target controller driver.

Introduce the set_feature() and get_feature() controller fabrics
operations (in struct nvmet_fabrics_ops) to allow supporting such
features.

Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Tested-by: Rick Wertenbroek <rick.wertenbroek@gmail.com>
Tested-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/target/nvmet.h