diff options
author | Sindhu, Devale <sindhu.devale@intel.com> | 2020-03-13 16:44:06 -0500 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2020-03-18 13:53:44 -0300 |
commit | 4b34e23f4eaa236b918886fb90f468a6aa04997f (patch) | |
tree | a19ede2ae0b5e51497e0899ca2ea4318e903e971 /drivers/infiniband/hw/i40iw/i40iw_p.h | |
parent | d6a3627e311c5488539150614fedaea5e3103235 (diff) | |
download | linux-stable-4b34e23f4eaa236b918886fb90f468a6aa04997f.tar.gz linux-stable-4b34e23f4eaa236b918886fb90f468a6aa04997f.tar.bz2 linux-stable-4b34e23f4eaa236b918886fb90f468a6aa04997f.zip |
i40iw: Report correct firmware version
The driver uses a hard-coded value for FW version and reports an
inconsistent FW version between ibv_devinfo and
/sys/class/infiniband/i40iw/fw_ver.
Retrieve the FW version via a Control QP (CQP) operation and report it
consistently across sysfs and query device.
Fixes: d37498417947 ("i40iw: add files for iwarp interface")
Link: https://lore.kernel.org/r/20200313214406.2159-1-shiraz.saleem@intel.com
Reported-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Sindhu, Devale <sindhu.devale@intel.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/i40iw/i40iw_p.h')
-rw-r--r-- | drivers/infiniband/hw/i40iw/i40iw_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/i40iw/i40iw_p.h b/drivers/infiniband/hw/i40iw/i40iw_p.h index 11d3a2a72100..4c429567bbb4 100644 --- a/drivers/infiniband/hw/i40iw/i40iw_p.h +++ b/drivers/infiniband/hw/i40iw/i40iw_p.h @@ -105,6 +105,7 @@ enum i40iw_status_code i40iw_sc_static_hmc_pages_allocated(struct i40iw_sc_cqp * bool poll_registers); enum i40iw_status_code i40iw_config_fpm_values(struct i40iw_sc_dev *dev, u32 qp_count); +enum i40iw_status_code i40iw_get_rdma_features(struct i40iw_sc_dev *dev); void free_sd_mem(struct i40iw_sc_dev *dev); |