diff options
| author | Bob Pearson <rpearsonhpe@gmail.com> | 2020-12-16 17:15:47 -0600 |
|---|---|---|
| committer | Jason Gunthorpe <jgg@nvidia.com> | 2021-01-12 16:35:38 -0400 |
| commit | 2622aa718a6a774ba302ca002adc62eeab9cdf28 (patch) | |
| tree | 16e7ec0e228fd0e452c09524f43c5fde4d5cf182 /tools/perf/scripts/python | |
| parent | b994d49ef4afa28dc335ee2b4b734939c7a1d95f (diff) | |
| download | linux-2622aa718a6a774ba302ca002adc62eeab9cdf28.tar.gz linux-2622aa718a6a774ba302ca002adc62eeab9cdf28.zip | |
RDMA/rxe: Make pool lookup and alloc APIs type safe
The allocate, lookup index, lookup key and cleanup routines in rxe_pool.c
currently are not type safe against relocating the pelem field in the
objects. Planned changes to move allocation of objects into rdma-core make
addressing this a requirement.
Use the elem_offset field in rxe_type_info make these APIs safe against
moving the pelem field.
Link: https://lore.kernel.org/r/20201216231550.27224-5-rpearson@hpe.com
Signed-off-by: Bob Pearson <rpearson@hpe.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
