[PATCH net v2 1/4] net: sparx5: defer VCAP debugfs creation until after netdev registration
Jakub Kicinski
kuba at kernel.org
Thu May 7 09:08:10 PDT 2026
On Wed, 6 May 2026 09:25:36 +0200 Daniel Machon wrote:
> Move the debugfs setup into a new sparx5_debugfs() helper in
> sparx5_debugfs.c, invoked after sparx5_register_notifier_blocks()
> succeeds so the netdev names are finalized. sparx5_vcap_init() now
> only deals with VCAP state. The sparx5/ debugfs root is created in
> the new helper as well.
netdev names are never final :( User can change them at any time.
The best practice is to name the debugfs file by some stable hw-related
property, bus, port number etc.
More information about the linux-arm-kernel
mailing list