IB/mlx5: Support RAW Ethernet when RoCE is disabled
authorOr Gerlitz <ogerlitz@mellanox.com>
Sun, 27 Nov 2016 14:51:36 +0000 (16:51 +0200)
committerDoug Ledford <dledford@redhat.com>
Tue, 13 Dec 2016 18:39:49 +0000 (13:39 -0500)
commitca5b91d63192ceaa41a6145f8c923debb64c71fa
tree7ad14569f0c6719ad8288f06fd3f5a9edc3e2dea
parent45f95acd63222dd1dc752fa904536327b10f1082
IB/mlx5: Support RAW Ethernet when RoCE is disabled

On some environments, such as certain SRIOV VF configurations, RoCE is
not supported for mlx5 Ethernet ports. Currently, the driver will not
open IB device on that port.

This is problematic, since we do want user-space RAW Ethernet (RAW_PACKET
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: Or Gerlitz <ogerlitz@mellanox.com>
Reviewed-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/main.c