} mandatory_table[] = {
IB_MANDATORY_FUNC(query_device),
IB_MANDATORY_FUNC(query_port),
- IB_MANDATORY_FUNC(query_pkey),
- IB_MANDATORY_FUNC(query_gid),
+ IB_MANDATORY_FUNC(query_pkey_chunk),
+ IB_MANDATORY_FUNC(query_gid_chunk),
IB_MANDATORY_FUNC(alloc_pd),
IB_MANDATORY_FUNC(dealloc_pd),
IB_MANDATORY_FUNC(create_ah),
/**
- * ib_query_gid - Get GID table entry
+ * ib_query_gid_chunk - Get a chunk of GID table entries
* @device:Device to query
* @port_num:Port number to query
* @index:GID table index to query
- * @gid:Returned GID
+ * @gid:Returned GIDs chunk
*
- * ib_query_gid() fetches the specified GID table entry.
+ * ib_query_gid_chunk() fetches the specified GID table enties chunk.
*/
-int ib_query_gid(struct ib_device *device,
- u8 port_num, int index, union ib_gid *gid)
+int ib_query_gid_chunk(struct ib_device *device,
+ u8 port_num, int index, union ib_gid gid[8])
{
- return device->query_gid(device, port_num, index, gid);
+ return device->query_gid_chunk(device, port_num, index, gid);
}
/**
- * ib_query_pkey - Get P_Key table entry
+ * ib_query_pkey_chunk - Get a chunk of P_Key table entries
* @device:Device to query
* @port_num:Port number to query
* @index:P_Key table index to query
- * @pkey:Returned P_Key
+ * @pkey:Returned P_Keys chunk
*
- * ib_query_pkey() fetches the specified P_Key table entry.
+ * ib_query_pkey_chunk() fetches the specified P_Key table entries chunk.
*/
-int ib_query_pkey(struct ib_device *device,
- u8 port_num, u16 index, u16 *pkey)
+int ib_query_pkey_chunk(struct ib_device *device,
+ u8 port_num, u16 index, u16 pkey[32])
{
- return device->query_pkey(device, port_num, index, pkey);
+ return device->query_pkey_chunk(device, port_num, index, pkey);
}