diff options
author | Jason Gunthorpe <[email protected]> | 2019-08-19 14:16:59 +0300 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2019-08-21 13:34:09 -0300 |
commit | 7cc2e18f21008f4093b49099264ca4d65b9aa223 (patch) | |
tree | ad116446bef54a5a3da15ac76896c7a698049cd8 /net/switchdev/switchdev.c | |
parent | 27b7fb1ab7bfad45f5702ff0c78a4822a41b1456 (diff) |
RDMA/odp: Use the common interval tree library instead of generic
ODP is working with userspace VA's in the interval tree which always fit
into an unsigned long, so we can use the common code.
This comes at a cost of a 16 byte increase in ib_umem_odp struct size due
to storing the interval tree start/last in addition to the umem
addr/length. However these values were computed and are performance
critical for the interval lookup, so this seems like a worthwhile trade
off.
Removes 2k of .text from the kernel.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Leon Romanovsky <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions