|
@@ -74,6 +74,25 @@ int ib_find_cached_gid(struct ib_device *device,
|
|
|
u8 *port_num,
|
|
|
u16 *index);
|
|
|
|
|
|
+/**
|
|
|
+ * ib_find_cached_gid_by_port - Returns the GID table index where a specified
|
|
|
+ * GID value occurs
|
|
|
+ * @device: The device to query.
|
|
|
+ * @gid: The GID value to search for.
|
|
|
+ * @port_num: The port number of the device where the GID value sould be
|
|
|
+ * searched.
|
|
|
+ * @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
|
|
|
+ * parameter may be NULL.
|
|
|
+ *
|
|
|
+ * ib_find_cached_gid() searches for the specified GID value in
|
|
|
+ * the local software cache.
|
|
|
+ */
|
|
|
+int ib_find_cached_gid_by_port(struct ib_device *device,
|
|
|
+ const union ib_gid *gid,
|
|
|
+ u8 port_num,
|
|
|
+ struct net_device *ndev,
|
|
|
+ u16 *index);
|
|
|
/**
|
|
|
* ib_get_cached_pkey - Returns a cached PKey table entry
|
|
|
* @device: The device to query.
|