diff options
| author | Akinobu Mita <[email protected]> | 2015-05-01 15:23:51 +0900 |
|---|---|---|
| committer | Nicholas Bellinger <[email protected]> | 2015-05-30 22:42:25 -0700 |
| commit | 18213afbd8cee9f8a3ac5294dedf543a06559c8b (patch) | |
| tree | a93327feb72cd36cf8c757fe6b12df54820179f9 /tools/perf/scripts/python | |
| parent | 10081fb532a2a2216b7d8e4ad585c985075b6f60 (diff) | |
target: handle odd SG mapping for data transfer memory
sbc_dif_generate() and sbc_dif_verify() currently assume that each
SG element for data transfer memory doesn't straddle the block size
boundary.
However, when using SG_IO ioctl, we can choose the data transfer
memory which doesn't satisfy that alignment requirement.
In order to handle such cases correctly, this change inverts the outer
loop to iterate data transfer memory and the inner loop to iterate
protection information and enables to calculate CRC for a block which
straddles multiple SG elements.
Signed-off-by: Akinobu Mita <[email protected]>
Cc: Tim Chen <[email protected]>
Cc: Herbert Xu <[email protected]>
Cc: "David S. Miller" <[email protected]>
Cc: [email protected]
Cc: Nicholas Bellinger <[email protected]>
Cc: Sagi Grimberg <[email protected]>
Cc: "Martin K. Petersen" <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: "James E.J. Bottomley" <[email protected]>
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Nicholas Bellinger <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions