Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/errno.h>
#include <linux/slab.h>
#include <linux/workqueue.h>
#include <rdma/ib_cache.h>
#include "core_priv.h"
Go to the source code of this file.
Data Structures | |
struct | ib_pkey_cache |
struct | ib_gid_cache |
struct | ib_update_work |
Functions | |
int | ib_get_cached_gid (struct ib_device *device, u8 port_num, int index, union ib_gid *gid) |
EXPORT_SYMBOL (ib_get_cached_gid) | |
int | ib_find_cached_gid (struct ib_device *device, union ib_gid *gid, u8 *port_num, u16 *index) |
EXPORT_SYMBOL (ib_find_cached_gid) | |
int | ib_get_cached_pkey (struct ib_device *device, u8 port_num, int index, u16 *pkey) |
EXPORT_SYMBOL (ib_get_cached_pkey) | |
int | ib_find_cached_pkey (struct ib_device *device, u8 port_num, u16 pkey, u16 *index) |
EXPORT_SYMBOL (ib_find_cached_pkey) | |
int | ib_find_exact_cached_pkey (struct ib_device *device, u8 port_num, u16 pkey, u16 *index) |
EXPORT_SYMBOL (ib_find_exact_cached_pkey) | |
int | ib_get_cached_lmc (struct ib_device *device, u8 port_num, u8 *lmc) |
EXPORT_SYMBOL (ib_get_cached_lmc) | |
int __init | ib_cache_setup (void) |
void __exit | ib_cache_cleanup (void) |
EXPORT_SYMBOL | ( | ib_get_cached_gid | ) |
EXPORT_SYMBOL | ( | ib_find_cached_gid | ) |
EXPORT_SYMBOL | ( | ib_get_cached_pkey | ) |
EXPORT_SYMBOL | ( | ib_find_cached_pkey | ) |
EXPORT_SYMBOL | ( | ib_find_exact_cached_pkey | ) |
EXPORT_SYMBOL | ( | ib_get_cached_lmc | ) |
int ib_find_cached_gid | ( | struct ib_device * | device, |
union ib_gid * | gid, | ||
u8 * | port_num, | ||
u16 * | index | ||
) |
ib_find_cached_gid - Returns the port number and GID table index where a specified GID value occurs. : The device to query. : The GID value to search for. : The port number of the device where the GID value was found. : The index into the cached GID table where the GID was found. This parameter may be NULL.
ib_find_cached_gid() searches for the specified GID value in the local software cache.
ib_find_cached_pkey - Returns the PKey table index where a specified PKey value occurs. : The device to query. : The port number of the device to search for the PKey. : The PKey value to search for. : The index into the cached PKey table where the PKey was found.
ib_find_cached_pkey() searches the specified PKey table in the local software cache.
ib_find_exact_cached_pkey - Returns the PKey table index where a specified PKey value occurs. Comparison uses the FULL 16 bits (incl membership bit) : The device to query. : The port number of the device to search for the PKey. : The PKey value to search for. : The index into the cached PKey table where the PKey was found.
ib_find_exact_cached_pkey() searches the specified PKey table in the local software cache.
ib_get_cached_gid - Returns a cached GID table entry : The device to query. : The port number of the device to query. : The index into the cached GID table to query. : The GID value found at the specified index.
ib_get_cached_gid() fetches the specified GID table entry stored in the local software cache.
ib_get_cached_pkey - Returns a cached PKey table entry : The device to query. : The port number of the device to query. : The index into the cached PKey table to query. : The PKey value found at the specified index.
ib_get_cached_pkey() fetches the specified PKey table entry stored in the local software cache.