|
@@ -64,6 +64,8 @@
|
|
|
#include <linux/cgroup_rdma.h>
|
|
|
#include <uapi/rdma/ib_user_verbs.h>
|
|
|
|
|
|
+#define IB_FW_VERSION_NAME_MAX ETHTOOL_FWVERS_LEN
|
|
|
+
|
|
|
extern struct workqueue_struct *ib_wq;
|
|
|
extern struct workqueue_struct *ib_comp_wq;
|
|
|
|
|
@@ -2307,7 +2309,7 @@ struct ib_device {
|
|
|
* in fast paths.
|
|
|
*/
|
|
|
int (*get_port_immutable)(struct ib_device *, u8, struct ib_port_immutable *);
|
|
|
- void (*get_dev_fw_str)(struct ib_device *, char *str, size_t str_len);
|
|
|
+ void (*get_dev_fw_str)(struct ib_device *, char *str);
|
|
|
};
|
|
|
|
|
|
struct ib_client {
|
|
@@ -2343,7 +2345,7 @@ struct ib_client {
|
|
|
struct ib_device *ib_alloc_device(size_t size);
|
|
|
void ib_dealloc_device(struct ib_device *device);
|
|
|
|
|
|
-void ib_get_device_fw_str(struct ib_device *device, char *str, size_t str_len);
|
|
|
+void ib_get_device_fw_str(struct ib_device *device, char *str);
|
|
|
|
|
|
int ib_register_device(struct ib_device *device,
|
|
|
int (*port_callback)(struct ib_device *,
|