···12061206 req->has_gid = true;12071207 req->service_id = req_param->primary_path->service_id;12081208 req->pkey = be16_to_cpu(req_param->primary_path->pkey);12091209+ if (req->pkey != req_param->bth_pkey)12101210+ pr_warn_ratelimited("RDMA CMA: got different BTH P_Key (0x%x) and primary path P_Key (0x%x)\n"12111211+ "RDMA CMA: in the future this may cause the request to be dropped\n",12121212+ req_param->bth_pkey, req->pkey);12091213 break;12101214 case IB_CM_SIDR_REQ_RECEIVED:12111215 req->device = sidr_param->listen_id->device;···12171213 req->has_gid = false;12181214 req->service_id = sidr_param->service_id;12191215 req->pkey = sidr_param->pkey;12161216+ if (req->pkey != sidr_param->bth_pkey)12171217+ pr_warn_ratelimited("RDMA CMA: got different BTH P_Key (0x%x) and SIDR request payload P_Key (0x%x)\n"12181218+ "RDMA CMA: in the future this may cause the request to be dropped\n",12191219+ sidr_param->bth_pkey, req->pkey);12201220 break;12211221 default:12221222 return -EINVAL;
···15671567 * - The last sg element is allowed to have length less than page_size.15681568 * - If sg_nents total byte length exceeds the mr max_num_sge * page_size15691569 * then only max_num_sg entries will be mapped.15701570+ * - If the MR was allocated with type IB_MR_TYPE_SG_GAPS_REG, non of these15711571+ * constraints holds and the page_size argument is ignored.15701572 *15711573 * Returns the number of sg elements that were mapped to the memory region.15721574 *