Subject: Re: [PATCH net v2 1/4] net: sparx5: defer VCAP debugfs creation until after netdev registration

From: Jakub Kicinski <[email-masked]>
Date: Thu, 7 May 2026 09:08:10 -0700

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.