summaryrefslogtreecommitdiffstats
path: root/sys/dev/iscsi/icl.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge r263233 from HEAD to stable/10:rwatson2015-03-191-1/+1
| | | | | | | | | Update kernel inclusions of capability.h to use capsicum.h instead; some further refinement is required as some device drivers intended to be portable over FreeBSD versions rely on __FreeBSD_version to decide whether to include capability.h. Sponsored by: Google, Inc.
* MFC r274853:mav2015-02-191-0/+2
| | | | | | | | | | For both iSCSI initiator and target increase socket buffer sizes before establishing connection. This is a workaround for Chelsio TOE driver, that does not update socket buffer size in hardware after connection established, and unless that is done beforehand, kernel code will stuck, attempting to send/receive full PDU at once.
* MFC r272765: Remove one second wait for threads exit from icl_conn_close().mav2015-01-031-5/+3
| | | | Switch it from polling with pause() to using cv_wait()/cv_signal().
* MFC r274033 (by trasz):mav2015-01-031-3/+3
| | | | s/icl_pdu_new/icl_pdu_new_empty/g; no functional changes.
* MFC r274036 (by trasz):mav2015-01-031-1/+1
| | | | | s/icl_pdu_new_bhs/icl_pdu_new/; no functional changes, just a little nicer code.
* MFC r272812: Make iSCSI connection close somewhat less aggressive.mav2014-10-201-22/+5
| | | | | | It allows to push out some final data from the send queue to the socket before its close. In particular, it increases chances for logout response to be delivered to the initiator.
* MFC r270282:trasz2014-08-311-2/+2
| | | | | | Use proper include paths in kernel iSCSI code. Sponsored by: The FreeBSD Foundation
* MFC r270279:trasz2014-08-311-1/+3
| | | | | | Make the iSCSI stack use __FBSDID() properly. Sponsored by: The FreeBSD Foundation
* MFC r269197:trasz2014-08-131-1/+4
| | | | Fix potential double free that could happen after connection error.
* MFC r264355 by mav@:trasz2014-05-071-5/+5
| | | | Remove unused val argument value from SYSCTL_INT() calls.
* MFC r264545:trasz2014-05-071-1/+1
| | | | | | Fix typo. Sponsored by: The FreeBSD Foundation
* MFC r264348 by mav@:trasz2014-05-071-13/+32
| | | | | | | | | | | | | | | | | | | Improve use of socket buffer upcalls. Use soreadable()/sowriteable() in socket upcalls to avoid extra wakeups until we have enough data to read or space to write. Increase partial receive len from 1K to 128K to not wake up on every received packet. This significantly reduces locks congestion and CPU usage and improves throughput for large I/Os on NICs without TSO and LRO. MFC r264552 by mav@: Close the race in older code, that caused connection stuck after r264348. Sponsored by: iXsystems, Inc.
* MFC r263740:trasz2014-05-071-7/+10
| | | | | | Use a less unusual syntax in debug printfs. Sponsored by: The FreeBSD Foundation
* MFC r264163:trasz2014-05-071-3/+4
| | | | | | Remove hack to pass STAILQ to a function and do it properly instead. Sponsored by: The FreeBSD Foundation
* MFC r264122:trasz2014-05-071-37/+168
| | | | | | | Rework the iSCSI PDU transmit code to avoid lock contention and coalesce PDUs before sending. Sponsored by: The FreeBSD Foundation
* MFC r264110:trasz2014-05-071-4/+4
| | | | | | All the iSCSI sysctls are also tunables; advertise that. Sponsored by: The FreeBSD Foundation
* MFC r264109:trasz2014-05-071-9/+9
| | | | | | We don't need TAILQ for iSCSI PDUs; STAILQ is enough. Sponsored by: The FreeBSD Foundation
* MFC r264026:trasz2014-05-071-4/+1
| | | | | | Enable a KASSERT. Sponsored by: The FreeBSD Foundation
* MFC r264025:trasz2014-05-071-11/+29
| | | | | | | | | | | | Get rid of the "autoscaling", instead just set socket buffer sizes in the usual way. The only thing the old code did was making things less predictable. MFC r264058: Fix build, broken by r264025. Sponsored by: The FreeBSD Foundation
* MFC r264023:trasz2014-05-071-3/+6
| | | | | | | Instead of "icltx" and "iclrx", use thread names with prefix from upper layer, so that one can see which side of the stack the threads are for. Sponsored by: The FreeBSD Foundation
* MFC r264022:trasz2014-05-071-10/+17
| | | | | | | | Get rid of ICL lock; use upper-layer (initiator or target) lock instead. This avoids extra locking in icl_pdu_queue(); the upper layer needs to call it while holding its own lock anyway, to avoid sending PDUs out of order. Sponsored by: The FreeBSD Foundation
* MFC r263743:trasz2014-05-071-0/+8
| | | | | | Move the ic_outstanding_count under #ifdef DIAGNOSTIC. Sponsored by: The FreeBSD Foundation
* MFC r260389:trasz2014-02-111-2/+2
| | | | | | | | | Fix a rare "truncated checksums" problem, which manifested like this: WARNING: icl_pdu_check_data_digest: data digest check failed; got 0xf23b, should be 0xdb7f23b Sponsored by: The FreeBSD Foundation
* MFC r260083:trasz2014-02-111-2/+2
| | | | | | | | | | Fix extremely slow operation with data digests enabled. This was caused by receive code waiting for data digest even when the data segment was empty. It didn't actually read it, but it waited until those four bytes become available in the socket buffer, i.e. until any other PDU (e.g. NOP) came in. Sponsored by: The FreeBSD Foundation
* MFC r257061:trasz2013-10-291-14/+12
| | | | | | | | | Don't spin with mutex hold when there is not enough room in the send socket buffer. While here, make the code flow somewhat nicer. Thanks to mav@ for tracking it down. Approved by: re (glebius)
* Fail connection upon receiving too large data segment.trasz2013-10-091-0/+1
| | | | | Approved by: re (glebius) Sponsored by: FreeBSD Foundation
* Don't leak memory when removing an unconnected session, and remove uselesstrasz2013-10-041-2/+3
| | | | | | | UMA_ZONE_NOFREE that caused another leak when unloading the module. Approved by: re (glebius) Sponsored by: FreeBSD Foundation
* Bring in the new iSCSI target and initiator.trasz2013-09-141-0/+1292
Reviewed by: ken (parts) Approved by: re (delphij) Sponsored by: FreeBSD Foundation
OpenPOWER on IntegriCloud