Re: [PATCH] net: add a debugfs files for showing netns refcount tracking info
From: Andrew Lunn
Date: Mon Mar 24 2025 - 16:51:47 EST
On Mon, Mar 24, 2025 at 04:24:47PM -0400, Jeff Layton wrote:
> CONFIG_NET_NS_REFCNT_TRACKER currently has no convenient way to display
> its tracking info. Add a new net_ns directory in debugfs. Have a
> directory in there for every net, with refcnt and notrefcnt files that
> show the currently tracked active and passive references.
Hi Jeff
CONFIG_NET_NS_REFCNT_TRACKER is just an instance of
CONFIG_REF_TRACKER.
It would be good to explain why you are doing it at the netdev level,
rather than part of the generic CONFIG_REF_TRACKER level. Why would
other subsystems not benefit from having their reference trackers in
debugfs?
Andrew