diff options
| author | Sergey Gorenko <[email protected]> | 2020-01-15 13:30:55 +0000 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2020-01-15 16:37:37 -0400 |
| commit | 0fbb37dd82998b5c83355997b3bdba2806968ac7 (patch) | |
| tree | ff5af00ce13b0cea1c4cd97d8736e7d4895c708e /tools/perf/scripts/python | |
| parent | 363824f92a9259b025f05ab038eb47224377f9e9 (diff) | |
IB/srp: Never use immediate data if it is disabled by a user
Some SRP targets that do not support specification SRP-2, put the garbage
to the reserved bits of the SRP login response. The problem was not
detected for a long time because the SRP initiator ignored those bits. But
now one of them is used as SRP_LOGIN_RSP_IMMED_SUPP. And it causes a
critical error on the target when the initiator sends immediate data.
The ib_srp module has a use_imm_date parameter to enable or disable
immediate data manually. But it does not help in the above case, because
use_imm_date is ignored at handling the SRP login response. The problem is
definitely caused by a bug on the target side, but the initiator's
behavior also does not look correct. The initiator should not use
immediate data if use_imm_date is disabled by a user.
This commit adds an additional checking of use_imm_date at the handling of
SRP login response to avoid unexpected use of immediate data.
Fixes: 882981f4a411 ("RDMA/srp: Add support for immediate data")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sergey Gorenko <[email protected]>
Reviewed-by: Bart Van Assche <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions