summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPatrisious Haddad <phaddad@nvidia.com>2022-12-06 15:33:49 +0300
committerLeon Romanovsky <leon@kernel.org>2023-08-20 12:35:23 +0300
commit2e92f669b86d70a26a77b088c74e1cb6d26322e1 (patch)
tree722077b936a2e4c4b4936e7e90719ad1576b2cbd /include
parent8603efbd18b091273876b72e6d9973df8b0a428a (diff)
downloadlinux-2e92f669b86d70a26a77b088c74e1cb6d26322e1.tar.xz
net/mlx5e: Move MACsec flow steering and statistics database from ethernet to core
Since now MACsec flow steering (macsec_fs) and MACsec statistics (stats) are maintained by the core driver, move their data as well to be saved inside core structures instead of staying part of ethernet MACsec database. In addition cleanup all MACsec stats functions from the ethernet MACsec code and move what's needed to be part of macsec_fs instead. Signed-off-by: Patrisious Haddad <phaddad@nvidia.com> Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mlx5/driver.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h
index 25d0528f9219..0e80241c270f 100644
--- a/include/linux/mlx5/driver.h
+++ b/include/linux/mlx5/driver.h
@@ -805,6 +805,9 @@ struct mlx5_core_dev {
u32 vsc_addr;
struct mlx5_hv_vhca *hv_vhca;
struct mlx5_thermal *thermal;
+#ifdef CONFIG_MLX5_MACSEC
+ struct mlx5_macsec_fs *macsec_fs;
+#endif
};
struct mlx5_db {