]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
eth fbnic: Add debugfs hooks for tx/rx rings
authorMike Marciniszyn (Meta) <mike.marciniszyn@gmail.com>
Tue, 27 Jan 2026 20:06:44 +0000 (15:06 -0500)
committerJakub Kicinski <kuba@kernel.org>
Sat, 31 Jan 2026 01:57:12 +0000 (17:57 -0800)
commitdf04373b0dab3985769773e011eb61264a4055a3
treee6c5e6be5ad3a27f5e6e8a7f466ba95136f558f1
parentac7b803c2dd57938cbf1e9a3ada23471925a5d46
eth fbnic: Add debugfs hooks for tx/rx rings

Add debugfs hooks to display tx/rx rings for each napi
vector.

Note that the cloning mechanism in fbnic_ethtool.c for configuration
changes protects against concurrency issues with simultaneous config
changes along with debugs ring accesses.

The configuration switch builds up the new configuration offline,
takes the current config down, which removes the debugfs nv files, and
switches to the new configuration.   The new configuration is brought
up which brings the debugfs files back on top of the new configuration
rings.

The interaction with fbnic_queue_stop() and fbnic_queue_start() will
similarly delete and add the files for the indicated vector.

Signed-off-by: Mike Marciniszyn (Meta) <mike.marciniszyn@gmail.com>
Link: https://patch.msgid.link/20260127200644.11640-3-mike.marciniszyn@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/meta/fbnic/fbnic_csr.h
drivers/net/ethernet/meta/fbnic/fbnic_debugfs.c
drivers/net/ethernet/meta/fbnic/fbnic_pci.c
drivers/net/ethernet/meta/fbnic/fbnic_txrx.c
drivers/net/ethernet/meta/fbnic/fbnic_txrx.h