2 * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
6 * This file contains code imported from the OFED rds source file sysctl.c
7 * Oracle elects to have and use the contents of sysctl.c under and governed
8 * by the OpenIB.org BSD license (see below for full license text). However,
9 * the following notice accompanied the original version of this file:
13 * Copyright (c) 2006 Oracle. All rights reserved.
15 * This software is available to you under a choice of one of two
16 * licenses. You may choose to be licensed under the terms of the GNU
17 * General Public License (GPL) Version 2, available from the file
18 * COPYING in the main directory of this source tree, or the
19 * OpenIB.org BSD license below:
21 * Redistribution and use in source and binary forms, with or
22 * without modification, are permitted provided that the following
25 * - Redistributions of source code must retain the above
26 * copyright notice, this list of conditions and the following
29 * - Redistributions in binary form must reproduce the above
30 * copyright notice, this list of conditions and the following
31 * disclaimer in the documentation and/or other materials
32 * provided with the distribution.
34 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
35 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
36 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
37 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
38 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
39 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
40 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
46 #define msecs_to_jiffies(a) a
48 static unsigned long rdsv3_sysctl_reconnect_min
= 1;
50 unsigned long rdsv3_sysctl_reconnect_min_jiffies
;
51 unsigned long rdsv3_sysctl_reconnect_max_jiffies
= HZ
;
53 unsigned int rdsv3_sysctl_max_unacked_packets
= 8;
54 unsigned int rdsv3_sysctl_max_unacked_bytes
= (16 << 20);
56 unsigned int rdsv3_sysctl_ping_enable
= 1;
59 rdsv3_sysctl_exit(void)
64 rdsv3_sysctl_init(void)
66 rdsv3_sysctl_reconnect_min
= msecs_to_jiffies(1);
67 rdsv3_sysctl_reconnect_min_jiffies
= rdsv3_sysctl_reconnect_min
;