diff options
author | Yi Zou <[email protected]> | 2009-08-13 14:09:58 +0000 |
---|---|---|
committer | David S. Miller <[email protected]> | 2009-08-13 20:13:22 -0700 |
commit | 17e78b0655da20f2fc2bbde3b8252dac07c82914 (patch) | |
tree | f9952f1cce377713aa247269e0495a0d05f4fff2 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf | |
parent | 232e7d68d50c9ac3a55d716e5ae215ecd1e043b9 (diff) |
ixgbe: Do not return 0 in ixgbe_fcoe_ddp() upon FCP_RSP in DDP completion
We return the ddp->len in ixgbe_fcoe_ddp() to indicate the length of data that
have been DDPed. However, it is possible that the length is 0, e.g., for SCSI
READ, the FCP_RSP may come back w/ SCSI status 0x28 as Task Set Full with no FCP
data for DDP. In ixgbe_fcoe_ddp(), we return 0 to indicate not passing DDPed
packets to upper layer. Therefore in the case of ddp->len being 0 upon FCP_RSP,
we do not want to return the 0 ddp->len as we want FCP_RSP to be always
delivered to the upper layer. This patch fixes this bug by setting rc only if
ddp->len is non-zero.
Signed-off-by: Yi Zou <[email protected]>
Acked-by: Peter P Waskiewicz Jr <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf')
0 files changed, 0 insertions, 0 deletions