|
@@ -396,9 +396,9 @@ struct srpt_port {
|
|
* @sdev_mutex: Serializes use_srq changes.
|
|
* @sdev_mutex: Serializes use_srq changes.
|
|
* @use_srq: Whether or not to use SRQ.
|
|
* @use_srq: Whether or not to use SRQ.
|
|
* @ioctx_ring: Per-HCA SRQ.
|
|
* @ioctx_ring: Per-HCA SRQ.
|
|
- * @port: Information about the ports owned by this HCA.
|
|
|
|
* @event_handler: Per-HCA asynchronous IB event handler.
|
|
* @event_handler: Per-HCA asynchronous IB event handler.
|
|
* @list: Node in srpt_dev_list.
|
|
* @list: Node in srpt_dev_list.
|
|
|
|
+ * @port: Information about the ports owned by this HCA.
|
|
*/
|
|
*/
|
|
struct srpt_device {
|
|
struct srpt_device {
|
|
struct ib_device *device;
|
|
struct ib_device *device;
|
|
@@ -410,9 +410,9 @@ struct srpt_device {
|
|
struct mutex sdev_mutex;
|
|
struct mutex sdev_mutex;
|
|
bool use_srq;
|
|
bool use_srq;
|
|
struct srpt_recv_ioctx **ioctx_ring;
|
|
struct srpt_recv_ioctx **ioctx_ring;
|
|
- struct srpt_port port[2];
|
|
|
|
struct ib_event_handler event_handler;
|
|
struct ib_event_handler event_handler;
|
|
struct list_head list;
|
|
struct list_head list;
|
|
|
|
+ struct srpt_port port[];
|
|
};
|
|
};
|
|
|
|
|
|
#endif /* IB_SRPT_H */
|
|
#endif /* IB_SRPT_H */
|