]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Add support for multiple RoCE enable
authorIlan Tayari <ilant@mellanox.com>
Sun, 26 Mar 2017 14:23:42 +0000 (17:23 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 27 Jun 2017 13:36:47 +0000 (16:36 +0300)
commita1b207f0568ea5abd6db3e0d4077df08b9933286
treee619f280d8b163905409ed1a713dd9865b52bbc8
parent1d3b97fb4e60012df887ab67b02808377decdf7c
net/mlx5: Add support for multiple RoCE enable

Previously, only mlx5_ib enabled RoCE on the port, but FPGA needs it as
well.
Add support for counting number of enables, so that FPGA and IB can work
in parallel and independently.
Program the HW to enable RoCE on the first enable call, and program to
disable RoCE on the last disable call.

Signed-off-by: Ilan Tayari <ilant@mellanox.com>
Reviewed-by: Boris Pismenny <borisp@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/vport.c
include/linux/mlx5/driver.h