summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/scripting-engines/trace-event-perl.c
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2014-07-09 15:57:51 +0200
committerRoland Dreier <roland@purestorage.com>2014-08-01 15:21:51 -0700
commite714531a349f614885ca11f68c38270940c5e915 (patch)
tree4df5f32ed7c50dd14437b83cc25fb52dd5ba82ce /tools/perf/util/scripting-engines/trace-event-perl.c
parentbcc05910359183b431da92713e98eed478edf83a (diff)
IB/srp: Fix residual handling
From Documentation/scsi/scsi_mid_low_api.txt: "resid - an LLD should set this signed integer to the requested transfer length (i.e. 'request_bufflen') less the number of bytes that are actually transferred." This means that resid > 0 in case of an underrun and also that resid < 0 in case of an overrun. Modify the SRP initiator code such that it matches this requirement. Signed-off-by: Bart Van Assche <bvanassche@acm.org> Reviewed-by: Sagi Grimberg <sagig@mellanox.com> Reviewed-by: David Dillow <dave@thedillows.org> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions