diff options
| author | Michael Brown | 2009-07-17 23:40:12 +0200 |
|---|---|---|
| committer | Michael Brown | 2009-07-18 00:06:35 +0200 |
| commit | ea6eb7f7ed32f6141813b8f0c3e382b1d2bdcbd8 (patch) | |
| tree | f29fb470495b29fe03e533d15a6b9bbcecdf54a7 /src/include/gpxe | |
| parent | [infiniband] Expose supported and enabled link speeds and widths (diff) | |
| download | ipxe-ea6eb7f7ed32f6141813b8f0c3e382b1d2bdcbd8.tar.gz ipxe-ea6eb7f7ed32f6141813b8f0c3e382b1d2bdcbd8.tar.xz ipxe-ea6eb7f7ed32f6141813b8f0c3e382b1d2bdcbd8.zip | |
[infiniband] Pass a generic MAD to ib_set_port_info()
Diffstat (limited to 'src/include/gpxe')
| -rw-r--r-- | src/include/gpxe/infiniband.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/include/gpxe/infiniband.h b/src/include/gpxe/infiniband.h index 25de491da..fcdb3c3d0 100644 --- a/src/include/gpxe/infiniband.h +++ b/src/include/gpxe/infiniband.h @@ -346,13 +346,12 @@ struct ib_device_operations { /** Set port information * * @v ibdev Infiniband device - * @v port_info New port information + * @v mad Set port information MAD * * This method is required only by adapters that do not have * an embedded SMA. */ - int ( * set_port_info ) ( struct ib_device *ibdev, - const struct ib_port_info *port_info ); + int ( * set_port_info ) ( struct ib_device *ibdev, union ib_mad *mad ); }; /** An Infiniband device */ @@ -457,8 +456,7 @@ extern void ib_mcast_detach ( struct ib_device *ibdev, struct ib_queue_pair *qp, struct ib_gid *gid ); extern int ib_get_hca_info ( struct ib_device *ibdev, struct ib_gid_half *hca_guid ); -extern int ib_set_port_info ( struct ib_device *ibdev, - const struct ib_port_info *port_info ); +extern int ib_set_port_info ( struct ib_device *ibdev, union ib_mad *mad ); extern struct ib_device * alloc_ibdev ( size_t priv_size ); extern int register_ibdev ( struct ib_device *ibdev ); extern void unregister_ibdev ( struct ib_device *ibdev ); |
