]> 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)
commitdbace589c01d6548d4eee42972f81e54fc66c251
tree247ba753947aef6eaeba6053627497992c2800d3
parentf05d2cc3194ee4b2281bd85cda543208942dc1c1
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