net/mlx5: Expose SFs IRQs
authorShay Drory <shayd@nvidia.com>
Sun, 14 Apr 2024 08:26:07 +0000 (11:26 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 11 Jul 2024 21:17:14 +0000 (14:17 -0700)
commit0477d5168bbb8767275822830b47112519a8446d
treeb3ab21fcbdcbb0228c68bff81071aff28d0d29bc
parenta808878308a8041ae10a151d69e2d22f94cae9f4
net/mlx5: Expose SFs IRQs

Expose the sysfs files for the IRQs that the mlx5 PCI SFs are using.
These entries are similar to PCI PFs and VFs in 'msi_irqs' directory.

Reviewed-by: Parav Pandit <parav@nvidia.com>
Signed-off-by: Shay Drory <shayd@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
---
v8-v9:
- add Przemek RB
v6->v7:
- remove not needed changes to mlx5 sfnum SF sysfs
v5->v6:
- fail IRQ creation in case auxiliary_device_sysfs_irq_add() failed
  (Parav and Przemek)
v2->v3:
- fix mlx5 sfnum SF sysfs
drivers/net/ethernet/mellanox/mlx5/core/eq.c
drivers/net/ethernet/mellanox/mlx5/core/irq_affinity.c
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
drivers/net/ethernet/mellanox/mlx5/core/mlx5_irq.h
drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c