Deleted Added
full compact
iw_cxgb_cm.c (200847) iw_cxgb_cm.c (217321)
1/**************************************************************************
2
3Copyright (c) 2007, Chelsio Inc.
4All rights reserved.
5
6Redistribution and use in source and binary forms, with or without
7modification, are permitted provided that the following conditions are met:
8

--- 13 unchanged lines hidden (view full) ---

22SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26POSSIBILITY OF SUCH DAMAGE.
27
28***************************************************************************/
29#include <sys/cdefs.h>
1/**************************************************************************
2
3Copyright (c) 2007, Chelsio Inc.
4All rights reserved.
5
6Redistribution and use in source and binary forms, with or without
7modification, are permitted provided that the following conditions are met:
8

--- 13 unchanged lines hidden (view full) ---

22SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26POSSIBILITY OF SUCH DAMAGE.
27
28***************************************************************************/
29#include <sys/cdefs.h>
30__FBSDID("$FreeBSD: head/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_cm.c 200847 2009-12-22 15:47:40Z jhb $");
30__FBSDID("$FreeBSD: head/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_cm.c 217321 2011-01-12 19:53:44Z mdf $");
31
32#include <sys/param.h>
33#include <sys/systm.h>
34#include <sys/kernel.h>
35#include <sys/bus.h>
36#include <sys/module.h>
37#include <sys/pciio.h>
38#include <sys/conf.h>

--- 57 unchanged lines hidden (view full) ---

96 NULL,
97};
98#endif
99
100SYSCTL_NODE(_hw, OID_AUTO, cxgb, CTLFLAG_RD, 0, "iw_cxgb driver parameters");
101
102static int ep_timeout_secs = 10;
103TUNABLE_INT("hw.iw_cxgb.ep_timeout_secs", &ep_timeout_secs);
31
32#include <sys/param.h>
33#include <sys/systm.h>
34#include <sys/kernel.h>
35#include <sys/bus.h>
36#include <sys/module.h>
37#include <sys/pciio.h>
38#include <sys/conf.h>

--- 57 unchanged lines hidden (view full) ---

96 NULL,
97};
98#endif
99
100SYSCTL_NODE(_hw, OID_AUTO, cxgb, CTLFLAG_RD, 0, "iw_cxgb driver parameters");
101
102static int ep_timeout_secs = 10;
103TUNABLE_INT("hw.iw_cxgb.ep_timeout_secs", &ep_timeout_secs);
104SYSCTL_UINT(_hw_cxgb, OID_AUTO, ep_timeout_secs, CTLFLAG_RDTUN, &ep_timeout_secs, 0,
104SYSCTL_INT(_hw_cxgb, OID_AUTO, ep_timeout_secs, CTLFLAG_RDTUN, &ep_timeout_secs, 0,
105 "CM Endpoint operation timeout in seconds (default=10)");
106
107static int mpa_rev = 1;
108TUNABLE_INT("hw.iw_cxgb.mpa_rev", &mpa_rev);
105 "CM Endpoint operation timeout in seconds (default=10)");
106
107static int mpa_rev = 1;
108TUNABLE_INT("hw.iw_cxgb.mpa_rev", &mpa_rev);
109SYSCTL_UINT(_hw_cxgb, OID_AUTO, mpa_rev, CTLFLAG_RDTUN, &mpa_rev, 0,
109SYSCTL_INT(_hw_cxgb, OID_AUTO, mpa_rev, CTLFLAG_RDTUN, &mpa_rev, 0,
110 "MPA Revision, 0 supports amso1100, 1 is spec compliant. (default=1)");
111
112static int markers_enabled = 0;
113TUNABLE_INT("hw.iw_cxgb.markers_enabled", &markers_enabled);
110 "MPA Revision, 0 supports amso1100, 1 is spec compliant. (default=1)");
111
112static int markers_enabled = 0;
113TUNABLE_INT("hw.iw_cxgb.markers_enabled", &markers_enabled);
114SYSCTL_UINT(_hw_cxgb, OID_AUTO, markers_enabled, CTLFLAG_RDTUN, &markers_enabled, 0,
114SYSCTL_INT(_hw_cxgb, OID_AUTO, markers_enabled, CTLFLAG_RDTUN, &markers_enabled, 0,
115 "Enable MPA MARKERS (default(0)=disabled)");
116
117static int crc_enabled = 1;
118TUNABLE_INT("hw.iw_cxgb.crc_enabled", &crc_enabled);
115 "Enable MPA MARKERS (default(0)=disabled)");
116
117static int crc_enabled = 1;
118TUNABLE_INT("hw.iw_cxgb.crc_enabled", &crc_enabled);
119SYSCTL_UINT(_hw_cxgb, OID_AUTO, crc_enabled, CTLFLAG_RDTUN, &crc_enabled, 0,
119SYSCTL_INT(_hw_cxgb, OID_AUTO, crc_enabled, CTLFLAG_RDTUN, &crc_enabled, 0,
120 "Enable MPA CRC (default(1)=enabled)");
121
122static int rcv_win = 256 * 1024;
123TUNABLE_INT("hw.iw_cxgb.rcv_win", &rcv_win);
120 "Enable MPA CRC (default(1)=enabled)");
121
122static int rcv_win = 256 * 1024;
123TUNABLE_INT("hw.iw_cxgb.rcv_win", &rcv_win);
124SYSCTL_UINT(_hw_cxgb, OID_AUTO, rcv_win, CTLFLAG_RDTUN, &rcv_win, 0,
124SYSCTL_INT(_hw_cxgb, OID_AUTO, rcv_win, CTLFLAG_RDTUN, &rcv_win, 0,
125 "TCP receive window in bytes (default=256KB)");
126
127static int snd_win = 32 * 1024;
128TUNABLE_INT("hw.iw_cxgb.snd_win", &snd_win);
125 "TCP receive window in bytes (default=256KB)");
126
127static int snd_win = 32 * 1024;
128TUNABLE_INT("hw.iw_cxgb.snd_win", &snd_win);
129SYSCTL_UINT(_hw_cxgb, OID_AUTO, snd_win, CTLFLAG_RDTUN, &snd_win, 0,
129SYSCTL_INT(_hw_cxgb, OID_AUTO, snd_win, CTLFLAG_RDTUN, &snd_win, 0,
130 "TCP send window in bytes (default=32KB)");
131
132static unsigned int nocong = 0;
133TUNABLE_INT("hw.iw_cxgb.nocong", &nocong);
134SYSCTL_UINT(_hw_cxgb, OID_AUTO, nocong, CTLFLAG_RDTUN, &nocong, 0,
135 "Turn off congestion control (default=0)");
136
137static unsigned int cong_flavor = 1;

--- 1626 unchanged lines hidden ---
130 "TCP send window in bytes (default=32KB)");
131
132static unsigned int nocong = 0;
133TUNABLE_INT("hw.iw_cxgb.nocong", &nocong);
134SYSCTL_UINT(_hw_cxgb, OID_AUTO, nocong, CTLFLAG_RDTUN, &nocong, 0,
135 "Turn off congestion control (default=0)");
136
137static unsigned int cong_flavor = 1;

--- 1626 unchanged lines hidden ---