]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Add Fast teardown support
authorFeras Daoud <ferasda@mellanox.com>
Thu, 9 Aug 2018 06:55:21 +0000 (09:55 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 3 Oct 2018 23:18:00 +0000 (16:18 -0700)
commit08d8cc0d0d797c84595195a997541b578efca50d
tree768063ab0c8dbd18d37c8a19d4cd7e140e278b38
parent9d05ed964e19bc278058f62c18eeb70286745cac
net/mlx5: Add Fast teardown support

Today mlx5 devices support two teardown modes:
1- Regular teardown
2- Force teardown

This change introduces the enhanced version of the "Force teardown" that
allows SW to perform teardown in a faster way without the need to reclaim
all the pages.

Fast teardown provides the following advantages:
1- Fix a FW race condition that could cause command timeout
2- Avoid moving to polling mode
3- Close the vport to prevent PCI ACK to be sent without been scatter
to memory

Signed-off-by: Feras Daoud <ferasda@mellanox.com>
Reviewed-by: Majd Dibbiny <majd@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/fw.c
drivers/net/ethernet/mellanox/mlx5/core/health.c
drivers/net/ethernet/mellanox/mlx5/core/main.c
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
include/linux/mlx5/device.h
include/linux/mlx5/mlx5_ifc.h