icl.c (265500) | icl.c (265501) |
---|---|
1/*- 2 * Copyright (c) 2012 The FreeBSD Foundation 3 * All rights reserved. 4 * 5 * This software was developed by Edward Tomasz Napierala under sponsorship 6 * from the FreeBSD Foundation. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * | 1/*- 2 * Copyright (c) 2012 The FreeBSD Foundation 3 * All rights reserved. 4 * 5 * This software was developed by Edward Tomasz Napierala under sponsorship 6 * from the FreeBSD Foundation. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * |
29 * $FreeBSD: stable/10/sys/dev/iscsi/icl.c 265500 2014-05-07 06:44:19Z trasz $ | 29 * $FreeBSD: stable/10/sys/dev/iscsi/icl.c 265501 2014-05-07 06:46:59Z trasz $ |
30 */ 31 32/* 33 * iSCSI Common Layer. It's used by both the initiator and target to send 34 * and receive iSCSI PDUs. 35 */ 36 37#include <sys/param.h> --- 18 unchanged lines hidden (view full) --- 56#include <netinet/tcp.h> 57 58#include "icl.h" 59#include "iscsi_proto.h" 60 61SYSCTL_NODE(_kern, OID_AUTO, icl, CTLFLAG_RD, 0, "iSCSI Common Layer"); 62static int debug = 1; 63TUNABLE_INT("kern.icl.debug", &debug); | 30 */ 31 32/* 33 * iSCSI Common Layer. It's used by both the initiator and target to send 34 * and receive iSCSI PDUs. 35 */ 36 37#include <sys/param.h> --- 18 unchanged lines hidden (view full) --- 56#include <netinet/tcp.h> 57 58#include "icl.h" 59#include "iscsi_proto.h" 60 61SYSCTL_NODE(_kern, OID_AUTO, icl, CTLFLAG_RD, 0, "iSCSI Common Layer"); 62static int debug = 1; 63TUNABLE_INT("kern.icl.debug", &debug); |
64SYSCTL_INT(_kern_icl, OID_AUTO, debug, CTLFLAG_RW, | 64SYSCTL_INT(_kern_icl, OID_AUTO, debug, CTLFLAG_RWTUN, |
65 &debug, 1, "Enable debug messages"); 66static int partial_receive_len = 1 * 1024; /* XXX: More? */ 67TUNABLE_INT("kern.icl.partial_receive_len", &partial_receive_len); | 65 &debug, 1, "Enable debug messages"); 66static int partial_receive_len = 1 * 1024; /* XXX: More? */ 67TUNABLE_INT("kern.icl.partial_receive_len", &partial_receive_len); |
68SYSCTL_INT(_kern_icl, OID_AUTO, partial_receive_len, CTLFLAG_RW, | 68SYSCTL_INT(_kern_icl, OID_AUTO, partial_receive_len, CTLFLAG_RWTUN, |
69 &partial_receive_len, 1 * 1024, "Minimum read size for partially received " 70 "data segment"); 71static int sendspace = 1048576; 72TUNABLE_INT("kern.icl.sendspace", &sendspace); | 69 &partial_receive_len, 1 * 1024, "Minimum read size for partially received " 70 "data segment"); 71static int sendspace = 1048576; 72TUNABLE_INT("kern.icl.sendspace", &sendspace); |
73SYSCTL_INT(_kern_icl, OID_AUTO, sendspace, CTLFLAG_RW, | 73SYSCTL_INT(_kern_icl, OID_AUTO, sendspace, CTLFLAG_RWTUN, |
74 &sendspace, 1048576, "Default send socket buffer size"); 75static int recvspace = 1048576; 76TUNABLE_INT("kern.icl.recvspace", &recvspace); | 74 &sendspace, 1048576, "Default send socket buffer size"); 75static int recvspace = 1048576; 76TUNABLE_INT("kern.icl.recvspace", &recvspace); |
77SYSCTL_INT(_kern_icl, OID_AUTO, recvspace, CTLFLAG_RW, | 77SYSCTL_INT(_kern_icl, OID_AUTO, recvspace, CTLFLAG_RWTUN, |
78 &recvspace, 1048576, "Default receive socket buffer size"); 79 80static uma_zone_t icl_conn_zone; 81static uma_zone_t icl_pdu_zone; 82 83static volatile u_int icl_ncons; 84 85#define ICL_DEBUG(X, ...) \ --- 1240 unchanged lines hidden --- | 78 &recvspace, 1048576, "Default receive socket buffer size"); 79 80static uma_zone_t icl_conn_zone; 81static uma_zone_t icl_pdu_zone; 82 83static volatile u_int icl_ncons; 84 85#define ICL_DEBUG(X, ...) \ --- 1240 unchanged lines hidden --- |