Message ID | f551f20b0649b4be3f4c9536e756986665366e46.1731005223.git.leonro@nvidia.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | Fix read permissions for VPD attributes | expand |
On Thu, 7 Nov 2024 20:56:57 +0200 Leon Romanovsky wrote: > From: Leon Romanovsky <leonro@nvidia.com> > > mlx5 devices are PCIe spec compliant, doesn't expose any sensitive > information Vital Product Data (VPD) section. In addition, these devices > are capable to provide an unprivileged read access file exposed by PCI core. Acked-by: Jakub Kicinski <kuba@kernel.org>
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/main.c b/drivers/net/ethernet/mellanox/mlx5/core/main.c index 220a9ac75c8b..7e34badd174b 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/main.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/main.c @@ -2280,6 +2280,7 @@ static struct pci_driver mlx5_core_driver = { .sriov_configure = mlx5_core_sriov_configure, .sriov_get_vf_total_msix = mlx5_sriov_get_vf_total_msix, .sriov_set_msix_vec_count = mlx5_core_sriov_set_msix_vec_count, + .downgrade_vpd_read = true, }; /**