]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Cache the system image guid
authorAlaa Hleihel <alaa@mellanox.com>
Wed, 5 Sep 2018 14:06:37 +0000 (17:06 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 1 Oct 2018 18:32:47 +0000 (11:32 -0700)
commit3e77bc31d255e9314efdd5f71d1174e473791990
tree247ba753947aef6eaeba6053627497992c2800d3
parent8ef16bb481f9ab7b43f6c83a6833739ad4f77d5a
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>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
drivers/net/ethernet/mellanox/mlx5/core/vport.c
include/linux/mlx5/driver.h
include/linux/mlx5/vport.h