diff options
author | Alaa Hleihel <alaa@mellanox.com> | 2018-09-05 17:06:37 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2018-10-01 11:32:47 -0700 |
commit | 59c9d35ea9cd73c3a55642ec9a0097770baccb93 (patch) | |
tree | 247ba753947aef6eaeba6053627497992c2800d3 /include/linux/mlx5/driver.h | |
parent | b856df28f9230a47669efbdd57896084caadb2b3 (diff) | |
download | linux-59c9d35ea9cd73c3a55642ec9a0097770baccb93.tar.gz linux-59c9d35ea9cd73c3a55642ec9a0097770baccb93.tar.bz2 linux-59c9d35ea9cd73c3a55642ec9a0097770baccb93.zip |
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/driver.h')
-rw-r--r-- | include/linux/mlx5/driver.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h index ed73b51f6697..26a92462f4ce 100644 --- a/include/linux/mlx5/driver.h +++ b/include/linux/mlx5/driver.h @@ -838,6 +838,7 @@ struct mlx5_core_dev { u32 fpga[MLX5_ST_SZ_DW(fpga_cap)]; u32 qcam[MLX5_ST_SZ_DW(qcam_reg)]; } caps; + u64 sys_image_guid; phys_addr_t iseg_base; struct mlx5_init_seg __iomem *iseg; enum mlx5_device_state state; |