Changeset View
Changeset View
Standalone View
Standalone View
sys/ofed/include/rdma/ib_cache.h
Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Lines | |||||
* parameter may be NULL. | * parameter may be NULL. | ||||
* | * | ||||
* ib_find_cached_gid() searches for the specified GID value in | * ib_find_cached_gid() searches for the specified GID value in | ||||
* the local software cache. | * the local software cache. | ||||
*/ | */ | ||||
int ib_find_cached_gid(struct ib_device *device, | int ib_find_cached_gid(struct ib_device *device, | ||||
const union ib_gid *gid, | const union ib_gid *gid, | ||||
enum ib_gid_type gid_type, | enum ib_gid_type gid_type, | ||||
struct net_device *ndev, | struct ifnet *ndev, | ||||
u8 *port_num, | u8 *port_num, | ||||
u16 *index); | u16 *index); | ||||
/** | /** | ||||
* ib_find_cached_gid_by_port - Returns the GID table index where a specified | * ib_find_cached_gid_by_port - Returns the GID table index where a specified | ||||
* GID value occurs | * GID value occurs | ||||
* @device: The device to query. | * @device: The device to query. | ||||
* @gid: The GID value to search for. | * @gid: The GID value to search for. | ||||
* @gid_type: The GID type to search for. | * @gid_type: The GID type to search for. | ||||
* @port_num: The port number of the device where the GID value sould be | * @port_num: The port number of the device where the GID value sould be | ||||
* searched. | * searched. | ||||
* @ndev: In RoCE, the net device of the device. Null means ignore. | * @ndev: In RoCE, the net device of the device. Null means ignore. | ||||
* @index: The index into the cached GID table where the GID was found. This | * @index: The index into the cached GID table where the GID was found. This | ||||
* parameter may be NULL. | * parameter may be NULL. | ||||
* | * | ||||
* ib_find_cached_gid() searches for the specified GID value in | * ib_find_cached_gid() searches for the specified GID value in | ||||
* the local software cache. | * the local software cache. | ||||
*/ | */ | ||||
int ib_find_cached_gid_by_port(struct ib_device *device, | int ib_find_cached_gid_by_port(struct ib_device *device, | ||||
const union ib_gid *gid, | const union ib_gid *gid, | ||||
enum ib_gid_type gid_type, | enum ib_gid_type gid_type, | ||||
u8 port_num, | u8 port_num, | ||||
struct net_device *ndev, | struct ifnet *ndev, | ||||
u16 *index); | u16 *index); | ||||
int ib_find_gid_by_filter(struct ib_device *device, | int ib_find_gid_by_filter(struct ib_device *device, | ||||
const union ib_gid *gid, | const union ib_gid *gid, | ||||
u8 port_num, | u8 port_num, | ||||
bool (*filter)(const union ib_gid *gid, | bool (*filter)(const union ib_gid *gid, | ||||
const struct ib_gid_attr *, | const struct ib_gid_attr *, | ||||
void *), | void *), | ||||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |