Bart Van Assche
9bfdc312d3
ib_srpt: RHEL 5 build fix
...
Make the ib_srpt driver build again on RHEL 5 systems. See also
r6138.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6334 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-06-16 20:15:12 +00:00
Bart Van Assche
550ab7c1d3
ib_srpt: RHEL 7.1 build fix
...
With the RHEL 7.0 kernel ib_register_mad_agent() takes eight
arguments. With the RHEL 7.1 kernel the same function takes nine
arguments. Detect at build time how many arguments this function
takes.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6331 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-06-16 20:12:28 +00:00
Bart Van Assche
020ec68ddc
ib_srpt: Change default behavior from using SRQ to not using SRQ
...
Although the non-SRQ mode needs more resources that mode has the
advantage that the end-to-end flow control mechanism is used.
From the IB spec:
C9-150.2.1: For QPs that are not associated with an SRQ, each HCA
receive queue shall generate end-to-end flow control credits. If
a QP is associated with an SRQ, the HCA receive queue shall not
generate end-to-end flow control credits.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6329 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-06-16 18:57:16 +00:00
Bart Van Assche
5b397efc3f
srpt/README: Spelling fix
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6232 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-06-10 00:36:16 +00:00
Vladislav Bolkhovitin
e719f0eca5
ib_srpt: cleanup fixed
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6203 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-05-06 02:05:54 +00:00
Vladislav Bolkhovitin
906f4dfefb
Merge t10-pi branch back
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6192 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-05-01 04:21:56 +00:00
Bart Van Assche
33a4bccc38
ib_srpt: Avoid that aborting a command triggers a race condition
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6181 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-04-10 05:39:44 +00:00
Bart Van Assche
98fb52432c
ib_srpt: Specify a valid completion vector during completion queue creation
...
Avoid that SRP login can fail as follows:
kernel: ib_srpt: failed to create CQ: cqe 320; c.v. 17; ret -22
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6179 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-04-09 15:06:36 +00:00
Bart Van Assche
c32f79f6c1
Revert T10-PI support
...
The T10-PI patch (r6162) increases the time needed to run mkfs.ext4
over iSCSI from less than a second to several minutes. This is a
regression so revert the T10-PI patch until there is sufficient time
to find the root cause of this regression and to fix this regression.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6171 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-03-31 09:51:24 +00:00
Bart Van Assche
d6db54ebdc
ib_srpt: Enable building against OFED headers without patching the build system (follow-up for r6138)
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6166 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-03-29 19:19:36 +00:00
Bart Van Assche
a3f4f28711
Build fixes - follow-up for r6162
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6164 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-03-29 17:32:59 +00:00
Vladislav Bolkhovitin
fe38e4acb2
Copyrights updated
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6146 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-03-19 00:01:03 +00:00
Bart Van Assche
1c8574763b
ib_srpt, Makefile: Pass same flags to "make modules" and to "make install"
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6141 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-03-04 10:42:38 +00:00
Bart Van Assche
0e292ac2d8
ib_srpt: Follow-up for r6138
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6140 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-03-03 15:49:22 +00:00
Bart Van Assche
940faa9ad4
ib_srpt: Enable building against OFED headers without patching the build system
...
Additionally, include the OFED flavor name in the ib_srpt version number.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6138 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-03-02 14:28:25 +00:00
Bart Van Assche
ef48d260d2
ib_srpt: Suppress a compiler warning when building against Mellanox OFED
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6137 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-03-02 14:24:33 +00:00
Vladislav Bolkhovitin
4ac6d7a26d
[PATCH] scst: Drop detect() method
...
There is no need for a detect() method - code that is present in such
a method can be moved to module_init(). Hence declare this method
obsolete. Leave the detect pointer member in the target template for
now for out-of-tree SCST drivers.
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com >
with some improvements
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6113 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-21 04:32:36 +00:00
Bart Van Assche
35db9c65f3
ib_srpt: Suppress three more checkpatch warnings
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6107 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-17 07:21:01 +00:00
Bart Van Assche
f974dee9b0
ib_srpt: Suppress a checkpath complaint
...
Avoid that checkpatch reports the following:
WARNING: Possible unnecessary 'out of memory' message
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6106 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-17 07:08:49 +00:00
Bart Van Assche
68a9178e4a
ib_srpt: Remove redundant forward declarations
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6105 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-16 15:47:46 +00:00
Bart Van Assche
56d3217eb0
ib_srpt: Update a source code comment
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6104 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-16 15:43:44 +00:00
Bart Van Assche
d46a3e8bab
ib_srpt: Convert srpt_xfer_data() return value
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6103 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-16 14:49:45 +00:00
Bart Van Assche
59f25b783e
ib_srpt: Eliminate an argument from srpt_xfer_data()
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6102 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-16 14:34:00 +00:00
Bart Van Assche
5b5d944140
ib_srpt: Rename more variables
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6101 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-16 13:41:31 +00:00
Bart Van Assche
aa52348481
ib_srpt: Fix a checkpatch complaint
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6100 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-16 13:21:34 +00:00
Bart Van Assche
4ddf8b19ec
ib_srpt: Clean up an error message
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6099 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-16 13:18:18 +00:00
Bart Van Assche
585df7c5f6
ib_srpt: Rename a few variables
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6098 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-16 13:16:52 +00:00
Bart Van Assche
edb4d579fb
ib_srpt: Shorten a source code comment
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6097 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-16 12:53:12 +00:00
Bart Van Assche
c2b09b243c
ib_srpt: Change type of the first argument of srpt_get_ioc()
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6096 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-16 12:48:36 +00:00
Bart Van Assche
460c0bdada
ib_srpt: Swap the order of two declarations
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6095 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-16 10:56:26 +00:00
Bart Van Assche
c8e0a2c711
ib_srpt: Reorder structure members
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6094 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-16 10:40:05 +00:00
Bart Van Assche
b0ed8ed58c
ib_srpt: Convert print and trace statements
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6093 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-16 10:26:21 +00:00
Bart Van Assche
b686ed343d
ib_srpt: Remove TRACE_ENTRY()/TRACE_EXIT() macro invocations
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6092 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-16 09:46:40 +00:00
Bart Van Assche
42bc56a0a2
ib_srpt: Add missing kernel-doc comments
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6091 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-16 09:44:25 +00:00
Bart Van Assche
f9815c620d
ib_srpt: Eliminate struct srpt_tgt
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6090 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-16 09:41:25 +00:00
Bart Van Assche
f2796fa60b
ib_srpt: Remove a structure member that became superfluous due to the previous commit
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6086 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-13 13:12:06 +00:00
Bart Van Assche
0d452d4712
ib_srpt: Drop support for one_target_per_port=false
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6085 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-13 12:59:18 +00:00
Bart Van Assche
087c7352ac
srpt/README: Document how to configure scsi-mq at the initiator side
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6028 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-09 09:27:38 +00:00
Bart Van Assche
f4217a8b48
ib_srpt: Clarify a log message
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6026 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-08 12:53:02 +00:00
Bart Van Assche
2de7915259
ib_srpt: Remove an obsolete comment
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6022 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-06 15:11:33 +00:00
Bart Van Assche
078b9d3bbe
ib_srpt: Clean up header file ib_srpt.h
...
This patch does not change any functionality.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6021 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-06 14:39:55 +00:00
Bart Van Assche
070986a738
ib_srpt: Document #endif CONFIG_SCST_PROC statements
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6020 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-06 13:55:51 +00:00
Bart Van Assche
8446ccd282
ib_srpt: Remove emacs local variables
...
This patch does not change any functionality.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6019 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-05 16:23:25 +00:00
Bart Van Assche
387a603482
ib_srpt: Detect Mellanox OFED 2.3 correctly
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5990 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-01-26 11:32:32 +00:00
Bart Van Assche
9cd602de2f
Update for kernel 3.18
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5955 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-12-22 13:10:41 +00:00
Bart Van Assche
cf536e76b3
Spelling fix: choosen -> chosen
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5953 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-12-22 13:08:34 +00:00
Bart Van Assche
d6dbe1a0b0
Source code spelling fix: addres -> address
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5945 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-12-22 12:29:51 +00:00
Bart Van Assche
edcde67ddd
ib_srpt: Log P_Key during login
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5935 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-12-11 12:37:02 +00:00
Bart Van Assche
7507b77063
ib_srpt: Rework the max_sge computation changes from r5795
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5894 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-11-27 15:29:29 +00:00
Bart Van Assche
efa1a763a6
ib_srpt: Log reject reason
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5893 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-11-27 15:24:17 +00:00