|
@@ -346,13 +346,12 @@ struct ib_device_operations {
|
346
|
346
|
/** Set port information
|
347
|
347
|
*
|
348
|
348
|
* @v ibdev Infiniband device
|
349
|
|
- * @v port_info New port information
|
|
349
|
+ * @v mad Set port information MAD
|
350
|
350
|
*
|
351
|
351
|
* This method is required only by adapters that do not have
|
352
|
352
|
* an embedded SMA.
|
353
|
353
|
*/
|
354
|
|
- int ( * set_port_info ) ( struct ib_device *ibdev,
|
355
|
|
- const struct ib_port_info *port_info );
|
|
354
|
+ int ( * set_port_info ) ( struct ib_device *ibdev, union ib_mad *mad );
|
356
|
355
|
};
|
357
|
356
|
|
358
|
357
|
/** An Infiniband device */
|
|
@@ -457,8 +456,7 @@ extern void ib_mcast_detach ( struct ib_device *ibdev,
|
457
|
456
|
struct ib_queue_pair *qp, struct ib_gid *gid );
|
458
|
457
|
extern int ib_get_hca_info ( struct ib_device *ibdev,
|
459
|
458
|
struct ib_gid_half *hca_guid );
|
460
|
|
-extern int ib_set_port_info ( struct ib_device *ibdev,
|
461
|
|
- const struct ib_port_info *port_info );
|
|
459
|
+extern int ib_set_port_info ( struct ib_device *ibdev, union ib_mad *mad );
|
462
|
460
|
extern struct ib_device * alloc_ibdev ( size_t priv_size );
|
463
|
461
|
extern int register_ibdev ( struct ib_device *ibdev );
|
464
|
462
|
extern void unregister_ibdev ( struct ib_device *ibdev );
|