diff options
author | Majd Dibbiny <majd@mellanox.com> | 2017-03-19 11:01:28 +0200 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-04-21 12:26:05 -0400 |
commit | dd77abf8a03a1ebd4dd3ddebecce312dcb0d1af1 (patch) | |
tree | 7b63749336609b8c11a5f23a0ab2fdd1444b1f83 /include/linux/mlx4 | |
parent | b312be3d87e4c80872cbea869e569175c5eb0f9a (diff) | |
download | linux-dd77abf8a03a1ebd4dd3ddebecce312dcb0d1af1.tar.gz linux-dd77abf8a03a1ebd4dd3ddebecce312dcb0d1af1.tar.bz2 linux-dd77abf8a03a1ebd4dd3ddebecce312dcb0d1af1.zip |
IB/mlx4: Support RAW Ethernet when RoCE is disabled
On some environments, such as certain SR-IOV VF configurations, RoCE
isn't supported for mlx4 Ethernet ports. Currently the driver will
not open IB device on that port.
This is problematic since we do want user-space RAW Ethernet QPs functionality
to remain in place. For that end, enhance the relevant driver flows such that we
do create a device instance in that case.
Signed-off-by: Majd Dibbiny <majd@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/linux/mlx4')
-rw-r--r-- | include/linux/mlx4/device.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h index 1beb1ec2fbdf..74b765ce48ab 100644 --- a/include/linux/mlx4/device.h +++ b/include/linux/mlx4/device.h @@ -1011,8 +1011,7 @@ struct mlx4_mad_ifc { #define mlx4_foreach_ib_transport_port(port, dev) \ for ((port) = 1; (port) <= (dev)->caps.num_ports; (port)++) \ if (((dev)->caps.port_mask[port] == MLX4_PORT_TYPE_IB) || \ - ((dev)->caps.flags & MLX4_DEV_CAP_FLAG_IBOE) || \ - ((dev)->caps.flags2 & MLX4_DEV_CAP_FLAG2_ROCE_V1_V2)) + ((dev)->caps.port_mask[port] == MLX4_PORT_TYPE_ETH)) #define MLX4_INVALID_SLAVE_ID 0xFF #define MLX4_SINK_COUNTER_INDEX(dev) (dev->caps.max_counters - 1) |