]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2784e506f957c10d74ec0bfaf1bf978064d88118
treec2ee65f8d2883214f261d9f06af8a6f99f5a4b58
parent80bb6d434c0b780035bf82baffaa4f3c1985b5ad
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