diff options
| author | Jack Morgenstein <jackm@dev.mellanox.co.il> | 2012-08-03 04:40:55 -0400 |
|---|---|---|
| committer | Roland Dreier <roland@purestorage.com> | 2012-09-30 23:33:42 -0400 |
| commit | 026149cbaada391d98f1cbec47c488cb548f753a (patch) | |
| tree | 7996c6907496c5af0770aaaaa78a5fc851443789 /include/linux | |
| parent | 992e8e6e8781b71fd475bd1fd0555da7dba59966 (diff) | |
mlx4: Activate SR-IOV mode for IB
Remove the error returns for IB ports from mlx4_ib_add,
mlx4_INIT_PORT_wrapper, and mlx4_CLOSE_PORT_wrapper.
Currently, SRIOV is supported only for devices for which the
link layer is IB on all ports; RoCE support will be added later.
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/mlx4/device.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h index b3f9b4500b9b..9b243df789ef 100644 --- a/include/linux/mlx4/device.h +++ b/include/linux/mlx4/device.h | |||
| @@ -697,6 +697,10 @@ struct mlx4_init_port_param { | |||
| 697 | for ((port) = 1; (port) <= (dev)->caps.num_ports; (port)++) \ | 697 | for ((port) = 1; (port) <= (dev)->caps.num_ports; (port)++) \ |
| 698 | if ((type) == (dev)->caps.port_mask[(port)]) | 698 | if ((type) == (dev)->caps.port_mask[(port)]) |
| 699 | 699 | ||
| 700 | #define mlx4_foreach_non_ib_transport_port(port, dev) \ | ||
| 701 | for ((port) = 1; (port) <= (dev)->caps.num_ports; (port)++) \ | ||
| 702 | if (((dev)->caps.port_mask[port] != MLX4_PORT_TYPE_IB)) | ||
| 703 | |||
| 700 | #define mlx4_foreach_ib_transport_port(port, dev) \ | 704 | #define mlx4_foreach_ib_transport_port(port, dev) \ |
| 701 | for ((port) = 1; (port) <= (dev)->caps.num_ports; (port)++) \ | 705 | for ((port) = 1; (port) <= (dev)->caps.num_ports; (port)++) \ |
| 702 | if (((dev)->caps.port_mask[port] == MLX4_PORT_TYPE_IB) || \ | 706 | if (((dev)->caps.port_mask[port] == MLX4_PORT_TYPE_IB) || \ |
