diff options
| author | Moshe Shemesh <moshe@nvidia.com> | 2026-05-21 14:08:37 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-05-25 23:48:51 +0300 |
| commit | 0b43d2b76cc2001cc619a59024648e6c1fedcba8 (patch) | |
| tree | aaf565133227b4302ab031716366d49a5b9c4982 /include/linux/debugobjects.h | |
| parent | beca1cd919e0d602b16d2ced91255e41de2dc0b8 (diff) | |
| download | linux-0b43d2b76cc2001cc619a59024648e6c1fedcba8.tar.xz | |
net/mlx5: Expose PF number from query_esw_functions
Extract pci_device_function from the query_esw_functions output for both
the host PF and satellite PFs, storing it alongside the existing
host_number field.
Add mlx5_esw_get_hpf_pf_num() helper that returns the host PF's actual
PCI device function when the new query format is supported, falling back
to PCI_FUNC(dev->pdev->devfn) for older firmware. Use it in devlink port
attribute setup so that host PF and VF devlink ports report the correct
PF number rather than the ECPF's own PCI function number.
Signed-off-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20260521110843.367329-7-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
