summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@nvidia.com>2026-03-03 15:50:00 -0400
committerJason Gunthorpe <jgg@nvidia.com>2026-03-08 06:20:25 -0400
commit1de9287ece44022bd694e669153fb7644804e10d (patch)
tree44c958d4db92875b6cd555b6e87655bde6a38f1f /tools/lib/python
parentb51caeb24aad565ef26689fb667c60daa60094aa (diff)
RDMA: Add ib_copy_validate_udata_in()
Add a new function to consolidate the required compatibility pattern for driver data of checking against a minimum size, and checking for unknown trailing bytes to be zero into a function. This new function uses the faster copy_struct_from_user() instead of trying to directly check for zero. Incorporate the common ibdev_dbg() logging directly into the error paths of the helper. Link: https://patch.msgid.link/r/3-v3-bd56dd443069+49-bnxt_re_uapi_jgg@nvidia.com Tested-by: Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com> Acked-by: Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions