diff options
author | Alaa Hleihel <alaa@mellanox.com> | 2018-09-05 17:06:37 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2018-10-01 21:32:47 +0300 |
commit | 59c9d35ea9cd73c3a55642ec9a0097770baccb93 (patch) | |
tree | 247ba753947aef6eaeba6053627497992c2800d3 /include/linux/mlx5/vport.h | |
parent | b856df28f9230a47669efbdd57896084caadb2b3 (diff) | |
download | linux-59c9d35ea9cd73c3a55642ec9a0097770baccb93.tar.xz |
net/mlx5: Cache the system image guid
The system image guid is a read-only field which is used by the TC
offloads code to determine if two mlx5 devices belong to the same
ASIC while adding flows.
Read this once and save it on the core device rather than querying each
time an offloaded flow is added.
Signed-off-by: Alaa Hleihel <alaa@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'include/linux/mlx5/vport.h')
-rw-r--r-- | include/linux/mlx5/vport.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mlx5/vport.h b/include/linux/mlx5/vport.h index 7e7c6dfcfb09..9c694808c212 100644 --- a/include/linux/mlx5/vport.h +++ b/include/linux/mlx5/vport.h @@ -121,4 +121,6 @@ int mlx5_nic_vport_query_local_lb(struct mlx5_core_dev *mdev, bool *status); int mlx5_nic_vport_affiliate_multiport(struct mlx5_core_dev *master_mdev, struct mlx5_core_dev *port_mdev); int mlx5_nic_vport_unaffiliate_multiport(struct mlx5_core_dev *port_mdev); + +u64 mlx5_query_nic_system_image_guid(struct mlx5_core_dev *mdev); #endif /* __MLX5_VPORT_H__ */ |