Bart Van Assche
dd5561c93a
srpt/Makefile: Add double quotes around a path
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5878 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-11-19 00:17:41 +00:00
Bart Van Assche
3cff1e083f
ib_srpt: Make "make -j<n> install" work for n >= 2 if "make all" has not been run first
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5806 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-15 12:30:43 +00:00
Bart Van Assche
f4f568f884
ib_srpt: Add max_sge_delta kernel module parameter
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5795 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-10 12:18:09 +00:00
Bart Van Assche
6e311fea7f
ib_srpt: Bump driver version from 3.0.0-pre to 3.1.0-pre
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5769 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-04 12:56:48 +00:00
Bart Van Assche
7061a6ee8d
ib_srpt: Make the completion vector configurable
...
Allow a set of completion vectors to be associated with each InfiniBand
HCA port and allocate the completion vector for each session in a
round-robin fashion from the per-port set. This helps to spread the
InfiniBand interrupt workload over multiple CPU's, at least if different
InfiniBand MSI-X vectors are associated with different CPU's.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5728 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-25 12:50:19 +00:00
Bart Van Assche
8995f1c241
ib_srpt: Speed up kernel driver unloading after a cable pull
...
When unloading the ib_srpt kernel module, instead of waiting until
all connected queue pairs have left the TimeWait state, destroy
these queue pairs immediately.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5727 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-25 11:46:43 +00:00
Bart Van Assche
262506de26
ib_srpt: Log QPN next to session name
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5726 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-25 11:41:55 +00:00
Bart Van Assche
8b26eb2bbe
ib_srpt: Kernel v3.17 build fix
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5725 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-25 11:36:33 +00:00
Bart Van Assche
12430f9b46
nightly build: Add kernel 3.16 nightly build infrastructure
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5719 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-20 06:55:04 +00:00
Bart Van Assche
73ab86c615
srpt/README: Fix SLES patch instructions
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5682 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-07-18 09:30:25 +00:00
Bart Van Assche
56fbcf3ce5
srpt/Makefile: SLES + Mellanox OFED build fix
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5681 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-07-18 09:28:22 +00:00
Bart Van Assche
1ba2b87afa
srpt/Makefile: Remove a superfluous assignment statement
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5680 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-07-18 09:27:41 +00:00
Bart Van Assche
47e087abb4
ib_srpt: Fix Mellanox OFED build
...
Use the proper include directory when building against Mellanox OFED.
Do not require to remove /lib/modules/$(KVER)/kernel/drivers/infiniband
before building ib_srpt.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5679 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-07-16 08:29:16 +00:00
Bart Van Assche
bebce1c99f
ib_srpt: Remove existing ib_srpt.ko kernel modules before installation
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5628 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-06-28 19:56:36 +00:00
Bart Van Assche
8ffdd099e6
ib_srpt: Set SCSI residual fields in SRP_CMD reply
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5622 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-06-24 13:33:23 +00:00
Bart Van Assche
f4a38d3e6e
ib_srpt: Complain if another ib_srpt.ko kernel module already exists
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5621 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-06-24 13:32:18 +00:00
Bart Van Assche
e902f79ecf
kernel module installation: Skip "depmod" when building an RPM
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5612 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-06-19 12:48:25 +00:00
Bart Van Assche
1fdd3d9a8d
nightly build: Add kernel 3.15 build infrastructure
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5611 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-06-19 07:09:53 +00:00
Bart Van Assche
facea4c337
ib_srpt: Make one_target_per_port the default mode
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5598 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-06-13 06:55:23 +00:00
Bart Van Assche
dc869faeca
ib_srpt: Make non-OFED build work again
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5595 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-06-12 13:38:38 +00:00
Bart Van Assche
c7f9bcd1c0
ib_srpt: Set MOFED include path correctly if MOFED has been installed with --add-kernel-support
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5594 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-06-12 11:33:00 +00:00
Bart Van Assche
60a8326a28
ib_srpt: RHEL 5 build fix
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5579 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-06-11 10:02:15 +00:00
Bart Van Assche
a941f47817
ib_srpt: Make IB_EVENT_GID_CHANGE test independent of the OFED detection code
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5578 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-06-10 14:49:59 +00:00
Bart Van Assche
007e3dfbbf
ib_srpt: Make the test for IB_EVENT_GID_CHANGE support more robust
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5577 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-06-10 14:16:14 +00:00
Vladislav Bolkhovitin
97167af582
scst: Make lockdep_assert_held() easier to use
...
The lockdep_assert_held() macro is a convenient debugging tool.
However, it is inconvenient to surround each invocation of that
macro by an #ifdef/#endif pair. Hence make it easier to use this
macro with older kernel versions.
Signed-off-by: Bart Van Assche <bvanassche@acm.org >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5573 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-06-06 03:26:55 +00:00
Vladislav Bolkhovitin
6dab45204c
scst: Leave out FSF mail address
...
This avoids that the following checkpatch complaint is triggered:
Do not include the paragraph about writing to the Free Software Foundation's
mailing address from the sample GPL notice. The FSF has changed addresses in
the past, and may do so again. Linux already includes a copy of the GPL.
Signed-off-by: Bart Van Assche <bvanassche@acm.org >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5572 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-06-06 03:24:03 +00:00
Bart Van Assche
a7648c418e
ib_srpt: Avoid triggering a SCSI command timeout after login
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5567 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-06-04 15:17:59 +00:00
Bart Van Assche
fbbb9f05a1
ib_srpt: Fix an error message
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5566 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-06-04 15:14:22 +00:00
Bart Van Assche
0880cbf0cf
RHEL 7 build fixes
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5543 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-05-23 07:33:53 +00:00
Bart Van Assche
909abff111
ib_srpt: Source code comment spelling fix
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5518 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-05-12 15:56:45 +00:00
Bart Van Assche
d3d094d160
ib_srpt: Fix two recently introduced checkpatch complaints about whitespace
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5498 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-04-30 05:30:45 +00:00
Bart Van Assche
424b231e96
ib_srpt: Make LUN masking work again
...
This patch fixes a regression that was introduced in r5493.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5495 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-04-29 12:39:50 +00:00
Bart Van Assche
607487caca
ib_srpt, README: Fix RDMA/CM login instructions
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5494 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-04-29 12:35:41 +00:00
Bart Van Assche
6cbe580d89
ib_srpt: Unload properly with RDMA/CM disabled
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5474 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-04-24 18:43:41 +00:00
Bart Van Assche
99b7abe259
ib_srpt, Makefile: Introduce the OFED_KERNEL_DIR variable
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5473 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-04-24 12:27:00 +00:00
Bart Van Assche
eae0318512
ib_srpt: Make srpt_disconnect_ch() close sessions properly that have not yet reached the connected state
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5472 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-04-24 11:11:26 +00:00
Bart Van Assche
cd0dcb32ab
ib_srpt: Add support in the Makefile for MLNX OFED and for OFED 3.x
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5471 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-04-24 10:38:37 +00:00
Bart Van Assche
a4a01d6675
ib_srpt: OFED 3.12 build fix
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5470 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-04-24 10:37:58 +00:00
Bart Van Assche
54a84dff08
ib_srpt: Clean up the CM event handling messages (part 3)
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5462 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-04-23 13:38:54 +00:00
Bart Van Assche
4181477639
ib_srpt: RHEL 5.9 build fix (part 2)
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5461 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-04-23 09:20:52 +00:00
Bart Van Assche
3f76f4e792
ib_srpt, RDMA/CM: Avoid hanging sessions due to a cable pull
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5460 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-04-23 09:04:15 +00:00
Bart Van Assche
05c8c1548c
ib_srpt: Clean up the CM event handling code (part 2)
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5459 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-04-23 09:02:29 +00:00
Bart Van Assche
8fd1252268
ib_srpt: Clean up the CM event handling code
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5458 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-04-23 08:59:18 +00:00
Bart Van Assche
dafaa63ea0
ib_srpt: RHEL 5.9 build fix
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5457 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-04-23 08:57:17 +00:00
Bart Van Assche
c0d9aee18e
ib_srpt: RHEL 6.5 build fix
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5447 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-04-18 12:44:48 +00:00
Bart Van Assche
fc18736ce4
ib_srpt: Build fix for kernel versions < 3.0
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5446 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-04-18 12:38:39 +00:00
Bart Van Assche
fa58faf95b
ib_srpt: Add RDMA/CM support
...
Or in other words, add RoCE and iWARP support.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5445 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-04-18 12:22:30 +00:00
Bart Van Assche
c29fd6f34d
ib_srpt: Move the code for checking the QP timeout
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5444 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-04-18 12:11:18 +00:00
Bart Van Assche
f234b9db8a
ib_srpt: Use a mutex instead of a spinlock to protect the channel list
...
This is allowed because all CM callback functions are invoked from thread
context.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5443 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-04-18 12:10:47 +00:00
Bart Van Assche
97241d4e29
ib_srpt: Prepare RDMA/CM support
...
Move IB/CM members into a new struct. Report channel pointer instead of CM ID
pointer in diagnostic messages.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5442 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-04-18 12:09:33 +00:00