Commit 8bf4b30c authored by Ira Weiny's avatar Ira Weiny Committed by Doug Ledford
Browse files

IB/mad: Clean up rcv_has_same_class

rcv_has_same_class only needs access to the MAD header
specify WR and Receive WC as const

Reviewed-By: default avatarJason Gunthorpe <>
Reviewed-by: default avatarSean Hefty <>
Signed-off-by: default avatarIra Weiny <>
Signed-off-by: default avatarDoug Ledford <>
parent 96909308
......@@ -1747,10 +1747,10 @@ static int is_rmpp_data_mad(struct ib_mad_agent_private *mad_agent_priv,
(rmpp_mad->rmpp_hdr.rmpp_type == IB_MGMT_RMPP_TYPE_DATA);
static inline int rcv_has_same_class(struct ib_mad_send_wr_private *wr,
struct ib_mad_recv_wc *rwc)
static inline int rcv_has_same_class(const struct ib_mad_send_wr_private *wr,
const struct ib_mad_recv_wc *rwc)
return ((struct ib_mad *)(wr->send_buf.mad))->mad_hdr.mgmt_class ==
return ((struct ib_mad_hdr *)(wr->send_buf.mad))->mgmt_class ==
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment