]> err.no Git - linux-2.6/commit
IB/core: Add helpers for uncached GID and P_Key searches
authorYosef Etigin <yosefe@voltaire.com>
Mon, 14 May 2007 04:26:51 +0000 (07:26 +0300)
committerRoland Dreier <rolandd@cisco.com>
Sat, 19 May 2007 15:51:53 +0000 (08:51 -0700)
commit5eb620c81ce35aa0c533131bf4d06c4c8c2bfadf
tree8c6346a3af0611b7b2e1b8df41cb058b5fc145e5
parent8b8c8bca3a63073bac20f0fca178e00fdf7f5a09
IB/core: Add helpers for uncached GID and P_Key searches

Add ib_find_gid() and ib_find_pkey() functions that use uncached device
queries.  The calls might block but the returns are always up-to-date.
Cache P_Key and GID table lengths in core to avoid extra port info queries.

Signed-off-by: Yosef Etigin <yosefe@voltaire.com>
Acked-by: Michael S. Tsirkin <mst@dev.mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/core/device.c
include/rdma/ib_verbs.h