summaryrefslogtreecommitdiff
path: root/lockme.h
blob: 7cce97bb55330fbe1e755f11865836e25d8ddbe4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef LOCKME_H
#define LOCKME_H

#include <sys/mman.h>

#include "die.h"

static inline void xlockme(void)
{
	if (mlockall(MCL_CURRENT | MCL_FUTURE) != 0)
		panic("Cannot lock pages!\n");
}

static inline void xunlockme(void)
{
	munlockall();
}

#endif /* LOCKME_H */
m.com>2017-01-09 16:55:19 +0100 committerDavid S. Miller <davem@davemloft.net>2017-01-09 16:07:39 -0500 commitf38ba179c6ca94ebeb0ac6a0956c4ea533151ad8 (patch) treea061b0fe37bfc4070e7b97aa3600c72fc8bccf2b parentcd6851f30386e5e04b5c2253f8e1647ba0ebcd31 (diff)
smc: work request (WR) base for use by LLC and CDC
The base containers for RDMA transport are work requests and completion queue entries processed through Infiniband verbs: * allocate and initialize these areas * map these areas to DMA * implement the basic communication consisting of work request posting and receival of completion queue events Signed-off-by: Ursula Braun <ubraun@linux.vnet.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat
-rw-r--r--net/smc/Makefile2
-rw-r--r--net/smc/smc.h5
-rw-r--r--net/smc/smc_core.c11
-rw-r--r--net/smc/smc_core.h30
-rw-r--r--net/smc/smc_ib.c73
-rw-r--r--net/smc/smc_ib.h11
-rw-r--r--net/smc/smc_wr.c564
-rw-r--r--net/smc/smc_wr.h95
8 files changed, 790 insertions, 1 deletions
diff --git a/net/smc/Makefile b/net/smc/Makefile