]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit59c9d35ea9cd73c3a55642ec9a0097770baccb93
tree247ba753947aef6eaeba6053627497992c2800d3
parentb856df28f9230a47669efbdd57896084caadb2b3
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