summaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5/driver.h
diff options
context:
space:
mode:
authorGal Pressman2016-12-14 16:40:41 +0100
committerSaeed Mahameed2017-01-19 22:20:03 +0100
commit701052c578195e6e02a22647fa6fd1c90c31dafd (patch)
treeddaef9e8cfe8fd101feb82b5d874eed00c18e2da /include/linux/mlx5/driver.h
parentnet/mlx5e: Expose PCIe statistics to ethtool (diff)
downloadkernel-qcow2-linux-701052c578195e6e02a22647fa6fd1c90c31dafd.tar.gz
kernel-qcow2-linux-701052c578195e6e02a22647fa6fd1c90c31dafd.tar.xz
kernel-qcow2-linux-701052c578195e6e02a22647fa6fd1c90c31dafd.zip
net/mlx5: Move cached hca caps to designated caps struct
The caps structure consists of hca caps and port/management caps, all under one roof. Signed-off-by: Gal Pressman <galp@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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h
index f4d6d390a9cf..1bc4641734da 100644
--- a/include/linux/mlx5/driver.h
+++ b/include/linux/mlx5/driver.h
@@ -738,9 +738,9 @@ struct mlx5_core_dev {
char board_id[MLX5_BOARD_ID_LEN];
struct mlx5_cmd cmd;
struct mlx5_port_caps port_caps[MLX5_MAX_PORTS];
- u32 hca_caps_cur[MLX5_CAP_NUM][MLX5_UN_SZ_DW(hca_cap_union)];
- u32 hca_caps_max[MLX5_CAP_NUM][MLX5_UN_SZ_DW(hca_cap_union)];
struct {
+ u32 hca_cur[MLX5_CAP_NUM][MLX5_UN_SZ_DW(hca_cap_union)];
+ u32 hca_max[MLX5_CAP_NUM][MLX5_UN_SZ_DW(hca_cap_union)];
u32 pcam[MLX5_ST_SZ_DW(pcam_reg)];
u32 mcam[MLX5_ST_SZ_DW(mcam_reg)];
} caps;