Lines Matching refs:mpa_frame
830 struct ietf_mpa_v1 *mpa_frame = start_addr; in irdma_build_mpa_v1() local
834 memcpy(mpa_frame->key, IEFT_MPA_KEY_REQ, IETF_MPA_KEY_SIZE); in irdma_build_mpa_v1()
837 memcpy(mpa_frame->key, IEFT_MPA_KEY_REP, IETF_MPA_KEY_SIZE); in irdma_build_mpa_v1()
842 mpa_frame->flags = IETF_MPA_FLAGS_CRC; in irdma_build_mpa_v1()
843 mpa_frame->rev = cm_node->mpa_frame_rev; in irdma_build_mpa_v1()
844 mpa_frame->priv_data_len = htons(cm_node->pdata.size); in irdma_build_mpa_v1()
857 struct ietf_mpa_v2 *mpa_frame = start_addr; in irdma_build_mpa_v2() local
858 struct ietf_rtr_msg *rtr_msg = &mpa_frame->rtr_msg; in irdma_build_mpa_v2()
863 mpa_frame->flags |= IETF_MPA_V2_FLAG; in irdma_build_mpa_v2()
865 mpa_frame->flags |= IETF_MPA_FLAGS_MARKERS; in irdma_build_mpa_v2()
868 mpa_frame->priv_data_len = cpu_to_be16(be16_to_cpu(mpa_frame->priv_data_len) + in irdma_build_mpa_v2()
1077 struct ietf_mpa_v1 *mpa_frame; in irdma_parse_mpa() local
1082 if (len < sizeof(*mpa_frame)) { in irdma_parse_mpa()
1088 mpa_frame = (struct ietf_mpa_v1 *)buf; in irdma_parse_mpa()
1089 mpa_hdr_len = sizeof(*mpa_frame); in irdma_parse_mpa()
1090 priv_data_len = ntohs(mpa_frame->priv_data_len); in irdma_parse_mpa()
1098 if (mpa_frame->rev != IETF_MPA_V1 && mpa_frame->rev != IETF_MPA_V2) { in irdma_parse_mpa()
1100 "unsupported mpa rev = %d\n", mpa_frame->rev); in irdma_parse_mpa()
1104 if (mpa_frame->rev > cm_node->mpa_frame_rev) { in irdma_parse_mpa()
1106 "rev %d\n", mpa_frame->rev); in irdma_parse_mpa()
1110 cm_node->mpa_frame_rev = mpa_frame->rev; in irdma_parse_mpa()
1112 if (memcmp(mpa_frame->key, IEFT_MPA_KEY_REQ, in irdma_parse_mpa()
1119 if (memcmp(mpa_frame->key, IEFT_MPA_KEY_REP, in irdma_parse_mpa()
1140 switch (mpa_frame->rev) { in irdma_parse_mpa()
1155 if (mpa_frame->flags & IETF_MPA_FLAGS_REJECT) in irdma_parse_mpa()
1158 if (mpa_frame->flags & IETF_MPA_FLAGS_MARKERS) in irdma_parse_mpa()