nvme: introduce nvme_is_fabrics to check fabrics cmd
authorMinwoo Im <minwoo.im.dev@gmail.com>
Thu, 6 Jun 2019 05:30:14 +0000 (14:30 +0900)
committerChristoph Hellwig <hch@lst.de>
Fri, 21 Jun 2019 09:08:38 +0000 (11:08 +0200)
commit7a1f46e3f75cff5042dfa1bb80c9929a0e412abc
tree0c6ca63c8514e435d59ff4cd2904e44c3f37ec26
parent1a87ee657c530bb2f3e39e4ac184d48f5f959cda
nvme: introduce nvme_is_fabrics to check fabrics cmd

This patch introduces a nvme_is_fabrics() inline function to check
whether or not the given command structure is for fabrics.

Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/fabrics.c
drivers/nvme/target/core.c
drivers/nvme/target/fabrics-cmd.c
drivers/nvme/target/fc.c
include/linux/nvme.h