diff options
author | Feras Daoud <ferasda@mellanox.com> | 2018-08-09 09:55:21 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2018-10-03 16:18:00 -0700 |
commit | fcd29ad17c6ff885dfae58f557e9323941e63ba2 (patch) | |
tree | 768063ab0c8dbd18d37c8a19d4cd7e140e278b38 /include/linux/mlx5/device.h | |
parent | 94563847a8733c27b2f56ac82bad4c78e074e244 (diff) | |
download | linux-fcd29ad17c6ff885dfae58f557e9323941e63ba2.tar.gz linux-fcd29ad17c6ff885dfae58f557e9323941e63ba2.tar.bz2 linux-fcd29ad17c6ff885dfae58f557e9323941e63ba2.zip |
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>
Diffstat (limited to 'include/linux/mlx5/device.h')
-rw-r--r-- | include/linux/mlx5/device.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/mlx5/device.h b/include/linux/mlx5/device.h index 11fa4e66afc5..e9b502d5bcc1 100644 --- a/include/linux/mlx5/device.h +++ b/include/linux/mlx5/device.h @@ -504,6 +504,10 @@ struct health_buffer { __be16 ext_synd; }; +enum mlx5_cmd_addr_l_sz_offset { + MLX5_NIC_IFC_OFFSET = 8, +}; + struct mlx5_init_seg { __be32 fw_rev; __be32 cmdif_rev_fw_sub; |