aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/export-to-sqlite-report
diff options
context:
space:
mode:
authorKeith Busch <[email protected]>2022-09-06 09:07:37 -0700
committerChristoph Hellwig <[email protected]>2022-09-19 17:55:25 +0200
commitc372cdd1efdf2b8e51fdde36a2a05c263ab5ebb7 (patch)
tree5dfe0e15874ca2d3b210dda6d9e2ff97e3aa0108 /tools/perf/scripts/python/bin/export-to-sqlite-report
parent52da4f3f5cbd42815946c0544774167241f9f45f (diff)
nvme-pci: iod npages fits in s8
The largest allowed transfer is 4MB, which can use at most 1025 PRPs. Each PRP is 8 bytes, so the maximum number of 4k nvme pages needed for the iod_list is 3, which fits in an 's8' type. While modifying this field, change the name to "nr_allocations" to better represent that this is referring to the number of units allocated from a dma_pool. Also introduce a BUILD_BUG_ON to ensure we never accidently increase the largest transfer limit beyond 127 chained prp lists. Reviewed-by: Chaitanya Kulkarni <[email protected]> Signed-off-by: Keith Busch <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-sqlite-report')
0 files changed, 0 insertions, 0 deletions