RDMA/hns: Use macro instead of magic number
authorLijun Ou <oulijun@huawei.com>
Mon, 30 Jul 2018 12:20:29 +0000 (20:20 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 31 Jul 2018 02:42:44 +0000 (20:42 -0600)
commit426c414619ab742f6cb97c648d06975aa82cd62e
tree004596f2275d9214b2db46a7ff04c1f6c1fd403a
parentac7cbf96c20991dbeea0af04ca9ff25252af9e5f
RDMA/hns: Use macro instead of magic number

This patch mainly uses CMD_CSQ_DESC_NUM instead of magic number in order
to improve readability.

Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
drivers/infiniband/hw/hns/hns_roce_hw_v2.h