aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/cxgb3/iwch_provider.c
diff options
context:
space:
mode:
authorYuval Shaia <yuval.shaia@oracle.com>2016-08-25 10:57:07 -0700
committerDoug Ledford <dledford@redhat.com>2016-10-07 16:54:34 -0400
commitbd99fdea420b00925e9b83a50f2ccc5e1f07ef7d (patch)
tree71bfd4e04262fd21efea0dd74eee5528a09f0709 /drivers/infiniband/hw/cxgb3/iwch_provider.c
parentipoib: Make ipoib_warn ratelimited (diff)
downloadlinux-dev-bd99fdea420b00925e9b83a50f2ccc5e1f07ef7d.tar.xz
linux-dev-bd99fdea420b00925e9b83a50f2ccc5e1f07ef7d.zip
IB/{core,hw}: Add constant for node_desc
Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/cxgb3/iwch_provider.c')
-rw-r--r--drivers/infiniband/hw/cxgb3/iwch_provider.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/cxgb3/iwch_provider.c b/drivers/infiniband/hw/cxgb3/iwch_provider.c
index 3edb80644b53..b47be87d5a53 100644
--- a/drivers/infiniband/hw/cxgb3/iwch_provider.c
+++ b/drivers/infiniband/hw/cxgb3/iwch_provider.c
@@ -1396,6 +1396,7 @@ int iwch_register_device(struct iwch_dev *dev)
(1ull << IB_USER_VERBS_CMD_POST_SEND) |
(1ull << IB_USER_VERBS_CMD_POST_RECV);
dev->ibdev.node_type = RDMA_NODE_RNIC;
+ BUILD_BUG_ON(sizeof(IWCH_NODE_DESC) > IB_DEVICE_NODE_DESC_MAX);
memcpy(dev->ibdev.node_desc, IWCH_NODE_DESC, sizeof(IWCH_NODE_DESC));
dev->ibdev.phys_port_cnt = dev->rdev.port_info.nports;
dev->ibdev.num_comp_vectors = 1;