public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH net 0/2] net: mana: Fix debugfs directory naming and file lifecycle
@ 2026-04-08  8:12 Erni Sri Satya Vennela
  2026-04-08  8:12 ` [PATCH net 1/2] net: mana: Use pci_name() for debugfs directory naming Erni Sri Satya Vennela
  2026-04-08  8:12 ` [PATCH net 2/2] net: mana: Move current_speed debugfs file to mana_init_port() Erni Sri Satya Vennela
  0 siblings, 2 replies; 3+ messages in thread
From: Erni Sri Satya Vennela @ 2026-04-08  8:12 UTC (permalink / raw)
  To: kys, haiyangz, wei.liu, decui, longli, andrew+netdev, davem,
	edumazet, kuba, pabeni, ernis, ssengar, dipayanroy, gargaditya,
	shradhagupta, kees, kotaranov, yury.norov, linux-hyperv, netdev,
	linux-kernel

This series fixes two pre-existing debugfs issues in the MANA driver.

Patch 1 fixes the per-device debugfs directory naming to use the unique
PCI BDF address via pci_name(), avoiding a potential NULL pointer
dereference when pdev->slot is NULL (e.g. VFIO passthrough, nested KVM)
and preventing name collisions across multiple PFs or VFs.

Patch 2 moves the current_speed debugfs file creation from
mana_probe_port() to mana_init_port() so it survives detach/attach
cycles triggered by MTU changes or XDP program changes.

Erni Sri Satya Vennela (2):
  net: mana: Use pci_name() for debugfs directory naming
  net: mana: Move current_speed debugfs file to mana_init_port()

 drivers/net/ethernet/microsoft/mana/gdma_main.c | 7 ++-----
 drivers/net/ethernet/microsoft/mana/mana_en.c   | 4 ++--
 2 files changed, 4 insertions(+), 7 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-04-08  8:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-08  8:12 [PATCH net 0/2] net: mana: Fix debugfs directory naming and file lifecycle Erni Sri Satya Vennela
2026-04-08  8:12 ` [PATCH net 1/2] net: mana: Use pci_name() for debugfs directory naming Erni Sri Satya Vennela
2026-04-08  8:12 ` [PATCH net 2/2] net: mana: Move current_speed debugfs file to mana_init_port() Erni Sri Satya Vennela

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox