[MTHCA] improve the time of handling events like port state change
[mirror/winof/.git] / hw / mthca / kernel / ib_verbs.h
index 24b093d..8e26930 100644 (file)
@@ -700,11 +700,11 @@ struct ib_device {
        int                        (*query_port)(struct ib_device *device,
                                                 u8 port_num,
                                                 struct ib_port_attr *port_attr);
-       int                        (*query_gid)(struct ib_device *device,
+       int                        (*query_gid_chunk)(struct ib_device *device,
                                                u8 port_num, int index,
-                                               union ib_gid *gid);
-       int                        (*query_pkey)(struct ib_device *device,
-                                                u8 port_num, u16 index, u16 *pkey);
+                                               union ib_gid gid[8]);
+       int                        (*query_pkey_chunk)(struct ib_device *device,
+                                                u8 port_num, u16 index, u16 pkey[32]);
        int                        (*modify_device)(struct ib_device *device,
                                                    int device_modify_mask,
                                                    struct ib_device_modify *device_modify);
@@ -855,11 +855,11 @@ int ib_query_device(struct ib_device *device,
 int ib_query_port(struct ib_device *device,
                  u8 port_num, struct ib_port_attr *port_attr);
 
-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]);
 
-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]);
 
 int ib_modify_device(struct ib_device *device,
                     int device_modify_mask,