提交 dc5bc6a9 编写于 作者: S Sagi Grimberg 提交者: Christoph Hellwig

nvme-rdma: Make queue flags bit numbers and not shifts

bitops accept bit numbers.
Reported-by: NVijay Immanuel <vijayi@attalasystems.com>
Signed-off-by: NSagi Grimberg <sagi@grimberg.me>
Signed-off-by: NChristoph Hellwig <hch@lst.de>
上级 3dee63c7
...@@ -80,10 +80,10 @@ struct nvme_rdma_request { ...@@ -80,10 +80,10 @@ struct nvme_rdma_request {
}; };
enum nvme_rdma_queue_flags { enum nvme_rdma_queue_flags {
NVME_RDMA_Q_CONNECTED = (1 << 0), NVME_RDMA_Q_CONNECTED = 0,
NVME_RDMA_IB_QUEUE_ALLOCATED = (1 << 1), NVME_RDMA_IB_QUEUE_ALLOCATED = 1,
NVME_RDMA_Q_DELETING = (1 << 2), NVME_RDMA_Q_DELETING = 2,
NVME_RDMA_Q_LIVE = (1 << 3), NVME_RDMA_Q_LIVE = 3,
}; };
struct nvme_rdma_queue { struct nvme_rdma_queue {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册