nvme-rdma: move nvme cm status helper to .h file
authorMax Gurtovoy <maxg@mellanox.com>
Mon, 20 Feb 2017 11:44:28 +0000 (13:44 +0200)
committerJens Axboe <axboe@fb.com>
Wed, 22 Feb 2017 20:34:00 +0000 (13:34 -0700)
commit3ee80c3d15b61e61611903033df414a0590cfde9
treec2ee65f8d2883214f261d9f06af8a6f99f5a4b58
parentfaef3af69dd7976315d37316698a436b81d05363
nvme-rdma: move nvme cm status helper to .h file

This will enable the usage for nvme rdma target.
Also move from a lookup array to a switch statement.

Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Reviewed-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/rdma.c
include/linux/nvme-rdma.h