IB/mlx4: Support RAW Ethernet when RoCE is disabled
authorMajd Dibbiny <majd@mellanox.com>
Sun, 19 Mar 2017 09:01:28 +0000 (11:01 +0200)
committerDoug Ledford <dledford@redhat.com>
Fri, 21 Apr 2017 16:26:05 +0000 (12:26 -0400)
commitdd77abf8a03a1ebd4dd3ddebecce312dcb0d1af1
tree7b63749336609b8c11a5f23a0ab2fdd1444b1f83
parentb312be3d87e4c80872cbea869e569175c5eb0f9a
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>
drivers/infiniband/hw/mlx4/main.c
include/linux/mlx4/device.h