1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2 * vim:expandtab:shiftwidth=8:tabstop=8:
4 * Copyright (c) 2003 Los Alamos National Laboratory (LANL)
6 * This file is part of Lustre, http://www.lustre.org/
8 * Lustre is free software; you can redistribute it and/or
9 * modify it under the terms of version 2 of the GNU General Public
10 * License as published by the Free Software Foundation.
12 * Lustre is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with Lustre; if not, write to the Free Software
19 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26 * -1 indicates default value.
27 * This is 1 thread per cpu
28 * See start_kernel_threads
30 int num_rx_threads = -1;
38 CDEBUG(D_TRACE, "This is the gmnal module initialisation routine\n");
41 CDEBUG(D_NET, "Calling gmnal_init\n");
42 status = gmnal_init();
43 if (status == PTL_OK) {
44 CDEBUG(D_NET, "Portals GMNAL initialised ok\n");
46 CDEBUG(D_NET, "Portals GMNAL Failed to initialise\n");
50 CDEBUG(D_NET, "This is the end of the gmnal init routine");
64 module_init(gmnal_load);
65 module_exit(gmnal_unload);
67 MODULE_PARM(num_rx_threads, "i");
68 MODULE_PARM(num_txds, "i");
69 MODULE_PARM(gm_port_id, "i");
71 MODULE_AUTHOR("Morgan Doyle");
73 MODULE_DESCRIPTION("A Portals kernel NAL for Myrinet GM.");
75 MODULE_LICENSE("GPL");