1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2 * vim:expandtab:shiftwidth=8:tabstop=8:
4 * Copyright (C) 2004 Cluster File Systems, Inc.
5 * Author: Eric Barton <eric@bartonsoftware.com>
6 * Copyright (C) 2006 Myricom, Inc.
7 * Author: Scott Atchley <atchley at myri.com>
9 * This file is part of Lustre, http://www.lustre.org.
11 * Lustre is free software; you can redistribute it and/or
12 * modify it under the terms of version 2 of the GNU General Public
13 * License as published by the Free Software Foundation.
15 * Lustre is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with Lustre; if not, write to the Free Software
22 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
27 static int n_waitd = MXLND_N_SCHED;
28 CFS_MODULE_PARM(n_waitd, "i", int, 0444,
29 "# of completion daemons");
31 static int max_peers = MXLND_MAX_PEERS;
32 CFS_MODULE_PARM(max_peers, "i", int, 0444,
33 "maximum number of peers that may connect");
35 static int cksum = MXLND_CKSUM;
36 CFS_MODULE_PARM(cksum, "i", int, 0644,
37 "set non-zero to enable message (not data payload) checksums");
39 static int ntx = MXLND_NTX;
40 CFS_MODULE_PARM(ntx, "i", int, 0444,
41 "# of total tx message descriptors");
43 static int credits = MXLND_MSG_QUEUE_DEPTH;
44 CFS_MODULE_PARM(credits, "i", int, 0444,
45 "# concurrent sends");
47 static int board = MXLND_MX_BOARD;
48 CFS_MODULE_PARM(board, "i", int, 0444,
49 "index value of the Myrinet board (NIC)");
51 static int ep_id = MXLND_MX_EP_ID;
52 CFS_MODULE_PARM(ep_id, "i", int, 0444,
55 static int polling = MXLND_POLLING;
56 CFS_MODULE_PARM(polling, "i", int, 0444,
57 "Use 0 to block (wait). A value > 0 will poll that many times before blocking");
59 static char *hosts = NULL;
60 CFS_MODULE_PARM(hosts, "s", charp, 0444,
61 "IP-to-hostname resolution file");
63 kmx_tunables_t kmxlnd_tunables = {
64 .kmx_n_waitd = &n_waitd,
65 .kmx_max_peers = &max_peers,
68 .kmx_credits = &credits,
71 .kmx_polling = &polling,