[dpdk-dev] [PATCH v2 13/13] vdpa/mlx5: disable ROCE

Maxime Coquelin maxime.coquelin at redhat.com
Fri Jan 31 17:42:01 CET 2020



On 1/29/20 11:09 AM, Matan Azrad wrote:
> In order to support virtio queue creation by the FW, ROCE mode
> should be disabled in the device.
> 
> Do it by netlink which is like the devlink tool commands:
> 	1. devlink dev param set pci/[pci] name enable_roce value false
> 	   cmode driverinit
>     	2. devlink dev reload pci/[pci]
> Or by sysfs which is like:
> 	echo 0 >  /sys/bus/pci/devices/[pci]/roce_enable
> 
> The IB device is matched again after ROCE disabling.
> 
> Signed-off-by: Matan Azrad <matan at mellanox.com>
> Acked-by: Viacheslav Ovsiienko <viacheslavo at mellanox.com>
> ---
>  drivers/vdpa/mlx5/Makefile    |   2 +-
>  drivers/vdpa/mlx5/meson.build |   2 +-
>  drivers/vdpa/mlx5/mlx5_vdpa.c | 192 ++++++++++++++++++++++++++++++++++--------
>  3 files changed, 161 insertions(+), 35 deletions(-)
> 

Acked-by: Maxime Coquelin <maxime.coquelin at redhat.com>

Thanks,
Maxime



More information about the dev mailing list