]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd6bd271b9f6ec38fc3debc5f57ffc8c7d2fe97f4
tree7b63749336609b8c11a5f23a0ab2fdd1444b1f83
parent449a15de1de21622ab1ecb1b98a77c2408c5a139
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