From ed835e1042869119a8a705ced354094dbf69d36b Mon Sep 17 00:00:00 2001 From: leonidk Date: Thu, 6 Sep 2007 12:02:17 +0000 Subject: [PATCH] [IBAL] add definition of CM_RDMA structure git-svn-id: svn://openib.tc.cornell.edu/gen1@781 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86 --- branches/Ndi/core/al/kernel/al_cm_rdma.h | 55 ++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 branches/Ndi/core/al/kernel/al_cm_rdma.h diff --git a/branches/Ndi/core/al/kernel/al_cm_rdma.h b/branches/Ndi/core/al/kernel/al_cm_rdma.h new file mode 100644 index 00000000..7fb69adf --- /dev/null +++ b/branches/Ndi/core/al/kernel/al_cm_rdma.h @@ -0,0 +1,55 @@ +/* + * Copyright (c) 2005 SilverStorm Technologies. All rights reserved. + * Copyright (c) 1996-2003 Intel Corporation. All rights reserved. + * + * This software is available to you under the OpenIB.org BSD license + * below: + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above + * copyright notice, this list of conditions and the following + * disclaimer. + * + * - Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials + * provided with the distribution. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS + * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN + * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + * $Id: al_cm_conn.h 33 2005-07-11 19:51:17Z ftillier $ + */ + +#if !defined(__IB_AL_CM_RDMA_H__) +#define __IB_AL_CM_RDMA_H__ + +#define IB_REQ_CM_RDMA_PDATA_SIZE 56 + +typedef struct _cm_rdma_req +{ + ib_net32_t src_port : 16; + ib_net32_t res : 4; + ib_net32_t ipv : 4; + ib_net32_t min_ver : 4; + ib_net32_t max_ver : 4; + ib_net32_t src_ip_addr[4]; + ib_net32_t dst_ip_addr[4]; + uint8_t pdata[IB_REQ_CM_RDMA_PDATA_SIZE]; + +} PACK_SUFFIX cm_rdma_req_t; + +#define IB_REQ_CM_RDMA_SID_PREFIX 0x0000000001000000 +#define IB_REQ_CM_RDMA_SID_IP_PROT 252 /* a voluntary value */ +#define IB_REQ_CM_RDMA_SID_BASE (IB_REQ_CM_RDMA_SID_PREFIX + (IB_REQ_CM_RDMA_SID_IP_PROT<<16)) + +#endif -- 2.41.0