summaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5/driver.h
diff options
context:
space:
mode:
authorInbar Karmy <inbark@mellanox.com>2017-08-24 17:21:44 +0300
committerSaeed Mahameed <saeedm@mellanox.com>2017-09-28 07:23:09 +0300
commit99d3cd27f755d63fd6cf85169eaa873d90769aa5 (patch)
treea7063bee9260e276ae0af910e633d86ba3102219 /include/linux/mlx5/driver.h
parent38e8a5c040d3ec99a8351c688dcdf0f549611565 (diff)
downloadlinux-99d3cd27f755d63fd6cf85169eaa873d90769aa5.tar.gz
linux-99d3cd27f755d63fd6cf85169eaa873d90769aa5.tar.bz2
linux-99d3cd27f755d63fd6cf85169eaa873d90769aa5.zip
net/mlx5: Fix FPGA capability location
Currently, FPGA capability is located in (mdev)->caps.hca_cur, change the location to be (mdev)->caps.fpga, since hca_cur is reserved for HCA device capabilities. Fixes: e29341fb3a5b ("net/mlx5: FPGA, Add basic support for Innova") Signed-off-by: Inbar Karmy <inbark@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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h
index 02ff700e4f30..401c8972cc3a 100644
--- a/include/linux/mlx5/driver.h
+++ b/include/linux/mlx5/driver.h
@@ -774,6 +774,7 @@ struct mlx5_core_dev {
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)];
+ u32 fpga[MLX5_ST_SZ_DW(fpga_cap)];
} caps;
phys_addr_t iseg_base;
struct mlx5_init_seg __iomem *iseg;