提交 eec8845d 编写于 作者: R Roland Dreier

RDMA/cxgb3: Remove write-only iwch_rnic_attributes fields

The members struct iwch_rnic_attributes.vendor_id and .vendor_part_id
are write-only, so we might as well get rid of them.
Signed-off-by: NRoland Dreier <rolandd@cisco.com>
Acked-by: NSteve Wise <swise@opengridcomputing.com>
上级 97d1cc80
...@@ -71,8 +71,6 @@ static void rnic_init(struct iwch_dev *rnicp) ...@@ -71,8 +71,6 @@ static void rnic_init(struct iwch_dev *rnicp)
idr_init(&rnicp->mmidr); idr_init(&rnicp->mmidr);
spin_lock_init(&rnicp->lock); spin_lock_init(&rnicp->lock);
rnicp->attr.vendor_id = 0x168;
rnicp->attr.vendor_part_id = 7;
rnicp->attr.max_qps = T3_MAX_NUM_QP - 32; rnicp->attr.max_qps = T3_MAX_NUM_QP - 32;
rnicp->attr.max_wrs = T3_MAX_QP_DEPTH; rnicp->attr.max_wrs = T3_MAX_QP_DEPTH;
rnicp->attr.max_sge_per_wr = T3_MAX_SGE; rnicp->attr.max_sge_per_wr = T3_MAX_SGE;
......
...@@ -48,8 +48,6 @@ struct iwch_qp; ...@@ -48,8 +48,6 @@ struct iwch_qp;
struct iwch_mr; struct iwch_mr;
struct iwch_rnic_attributes { struct iwch_rnic_attributes {
u32 vendor_id;
u32 vendor_part_id;
u32 max_qps; u32 max_qps;
u32 max_wrs; /* Max for any SQ/RQ */ u32 max_wrs; /* Max for any SQ/RQ */
u32 max_sge_per_wr; u32 max_sge_per_wr;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册