android_kernel_xiaomi_sm7250/drivers/infiniband
Roland Dreier 3463175d6e IB/uverbs: Factor out common idr code
Factor out common code for adding a userspace object to an idr into a
function idr_add_uobj().  This shrinks both the source and object code:

add/remove: 1/0 grow/shrink: 0/6 up/down: 57/-220 (-163)
function                                     old     new   delta
idr_add_uobj                                   -      57     +57
ib_uverbs_create_ah                          543     512     -31
ib_uverbs_create_srq                         662     630     -32
ib_uverbs_reg_mr                             737     699     -38
ib_uverbs_create_cq                          639     600     -39
ib_uverbs_alloc_pd                           485     446     -39
ib_uverbs_create_qp                         1020     979     -41

Signed-off-by: Roland Dreier <rolandd@cisco.com>
2006-06-17 20:37:40 -07:00
..
core IB/uverbs: Factor out common idr code 2006-06-17 20:37:40 -07:00
hw IB/mthca: Fill in max_map_per_fmr device attribute 2006-06-17 20:37:37 -07:00
ulp IB/srp: Factor out common request reset code 2006-06-17 20:37:38 -07:00
Kconfig IB: address translation to map IP toIB addresses (GIDs) 2006-06-17 20:37:28 -07:00
Makefile IB/ipath: kbuild infrastructure 2006-03-31 13:14:21 -08:00