message.c (712cba5d87a6c0e980ee5fad45734e189c4d7151) message.c (905dd4184e0732de41d6ee3c7b06e0cfdd9f0aad)
1/*
2 * Copyright (c) 2006 Oracle. All rights reserved.
3 *
4 * This software is available to you under a choice of one of two
5 * licenses. You may choose to be licensed under the terms of the GNU
6 * General Public License (GPL) Version 2, available from the file
7 * COPYING in the main directory of this source tree, or the
8 * OpenIB.org BSD license below:

--- 28 unchanged lines hidden (view full) ---

37#include "rds.h"
38
39static unsigned int rds_exthdr_size[__RDS_EXTHDR_MAX] = {
40[RDS_EXTHDR_NONE] = 0,
41[RDS_EXTHDR_VERSION] = sizeof(struct rds_ext_header_version),
42[RDS_EXTHDR_RDMA] = sizeof(struct rds_ext_header_rdma),
43[RDS_EXTHDR_RDMA_DEST] = sizeof(struct rds_ext_header_rdma_dest),
44[RDS_EXTHDR_NPATHS] = sizeof(u16),
1/*
2 * Copyright (c) 2006 Oracle. All rights reserved.
3 *
4 * This software is available to you under a choice of one of two
5 * licenses. You may choose to be licensed under the terms of the GNU
6 * General Public License (GPL) Version 2, available from the file
7 * COPYING in the main directory of this source tree, or the
8 * OpenIB.org BSD license below:

--- 28 unchanged lines hidden (view full) ---

37#include "rds.h"
38
39static unsigned int rds_exthdr_size[__RDS_EXTHDR_MAX] = {
40[RDS_EXTHDR_NONE] = 0,
41[RDS_EXTHDR_VERSION] = sizeof(struct rds_ext_header_version),
42[RDS_EXTHDR_RDMA] = sizeof(struct rds_ext_header_rdma),
43[RDS_EXTHDR_RDMA_DEST] = sizeof(struct rds_ext_header_rdma_dest),
44[RDS_EXTHDR_NPATHS] = sizeof(u16),
45[RDS_EXTHDR_GEN_NUM] = sizeof(u32),
45};
46
47
48void rds_message_addref(struct rds_message *rm)
49{
50 rdsdebug("addref rm %p ref %d\n", rm, atomic_read(&rm->m_refcount));
51 atomic_inc(&rm->m_refcount);
52}

--- 315 unchanged lines hidden ---
46};
47
48
49void rds_message_addref(struct rds_message *rm)
50{
51 rdsdebug("addref rm %p ref %d\n", rm, atomic_read(&rm->m_refcount));
52 atomic_inc(&rm->m_refcount);
53}

--- 315 unchanged lines hidden ---