summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@mellanox.com>2018-02-13 13:18:30 +0300
committerJason Gunthorpe <jgg@mellanox.com>2018-02-16 00:59:44 +0300
commit6c976c30ad1c205bd6e34182c5ba9a1267d752ca (patch)
tree067a09af8ce5420766a1e8c6f7af8c1315a355d5 /tools/perf/scripts/python/export-to-postgresql.py
parent89d9e8d3f14d807bbd7725f8f6f5eeb7f6f5c42f (diff)
downloadlinux-6c976c30ad1c205bd6e34182c5ba9a1267d752ca.tar.xz
IB/uverbs: Use inline data transfer for UHW_IN
The rule for the API is pointers less than 8 bytes are inlined into the .data field of the attribute. Fix the creation of the driver udata struct to follow this rule and point to the .data itself when the size is less than 8 bytes. Otherwise if the UHW struct is less than 8 bytes the driver will get EFAULT during copy_from_user. Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions