Whamcloud - gitweb
LU-6261 gnilnd: Hold shared MDD for gnilnd.
[fs/lustre-release.git] / lnet / klnds / gnilnd / gnilnd_gemini.h
1 /*
2  * Copyright (C) 2009-2012 Cray, Inc.
3  *
4  *   Author: Nic Henke <nic@cray.com>
5  *   Author: James Shimek <jshimek@cray.com>
6  *
7  *   This file is part of Lustre, http://www.lustre.org.
8  *
9  *   Lustre is free software; you can redistribute it and/or
10  *   modify it under the terms of version 2 of the GNU General Public
11  *   License as published by the Free Software Foundation.
12  *
13  *   Lustre is distributed in the hope that it will be useful,
14  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
15  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  *   GNU General Public License for more details.
17  *
18  *   You should have received a copy of the GNU General Public License
19  *   along with Lustre; if not, write to the Free Software
20  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21  *
22  */
23 #ifndef _GNILND_GEMINI_H
24 #define _GNILND_GEMINI_H
25
26 #ifndef _GNILND_HSS_OPS_H
27 # error "must include gnilnd_hss_ops.h first"
28 #endif
29
30 /* Set HW related values */
31 #define GNILND_BASE_TIMEOUT        60            /* default sane timeout */
32 #define GNILND_CHECKSUM_DEFAULT     3            /* all on for Gemini */
33
34 #define GNILND_REVERSE_RDMA         GNILND_REVERSE_NONE
35 #define GNILND_RDMA_DLVR_OPTION     GNI_DLVMODE_PERFORMANCE
36
37 #if !defined(CONFIG_CRAY_COMPUTE)
38 #define GNILND_SCHED_THREADS        3            /* scheduler threads */
39 #endif
40
41 /* Thread-safe kgni implemented in minor ver 44, code rev 0xb9 */
42 #define GNILND_KGNI_TS_MINOR_VER 0x44
43 #define GNILND_TS_ENABLE         0
44
45 static inline gni_return_t
46 kgnilnd_register_smdd_buf(kgn_device_t *dev)
47 {
48         return GNI_RC_SUCCESS;
49 }
50
51 static inline gni_return_t
52 kgnilnd_deregister_smdd_buf(kgn_device_t *dev)
53 {
54         return GNI_RC_SUCCESS;
55 }
56
57 #endif /* _GNILND_GEMINI_H */