summaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5/driver.h
diff options
context:
space:
mode:
authorFeras Daoud <ferasda@mellanox.com>2018-07-16 15:22:01 -0700
committerSaeed Mahameed <saeedm@mellanox.com>2018-07-23 15:01:11 -0700
commitf53aaa31cce7b543e407da7e97690a700206f7b9 (patch)
tree45eec25cb50c160a158d21efdf4c24891c0382a2 /include/linux/mlx5/driver.h
parent7854ac44fe86548f8a6c6001938a1a2593b255e4 (diff)
downloadlinux-f53aaa31cce7b543e407da7e97690a700206f7b9.tar.gz
linux-f53aaa31cce7b543e407da7e97690a700206f7b9.tar.bz2
linux-f53aaa31cce7b543e407da7e97690a700206f7b9.zip
net/mlx5: FW tracer, implement tracer logic
Implement FW tracer logic and registers access, initialization and cleanup flows. Initializing the tracer will be part of load one flow, as multiple PFs will try to acquire ownership but only one will succeed and will be the tracer owner. Signed-off-by: Feras Daoud <ferasda@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'include/linux/mlx5/driver.h')
-rw-r--r--include/linux/mlx5/driver.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h
index 957199c20a0f..86cb0ebf92fa 100644
--- a/include/linux/mlx5/driver.h
+++ b/include/linux/mlx5/driver.h
@@ -816,6 +816,8 @@ struct mlx5_clock {
struct mlx5_pps pps_info;
};
+struct mlx5_fw_tracer;
+
struct mlx5_core_dev {
struct pci_dev *pdev;
/* sync pci state */
@@ -860,6 +862,7 @@ struct mlx5_core_dev {
struct mlx5_clock clock;
struct mlx5_ib_clock_info *clock_info;
struct page *clock_info_page;
+ struct mlx5_fw_tracer *tracer;
};
struct mlx5_db {