diff options
| author | Aditya Garg <gargaditya@linux.microsoft.com> | 2026-07-10 06:22:29 -0700 |
|---|---|---|
| committer | Paolo Abeni <pabeni@redhat.com> | 2026-07-17 13:25:20 +0200 |
| commit | 922cc43c624330b9cf646d52fc82c820d9f699b3 (patch) | |
| tree | 140f2ba35e11b0aaaccee06e3bea8a2c89e27bb2 /include | |
| parent | 9df92875d6d741f9bff1ad95eeaf40b34943d2c4 (diff) | |
| download | linux-next-922cc43c624330b9cf646d52fc82c820d9f699b3.tar.gz linux-next-922cc43c624330b9cf646d52fc82c820d9f699b3.zip | |
net: mana: Add debug knob to skip TX timeout recovery reset
Add a per-port debugfs boolean "tx_timeout_skip_reset" that, when
enabled, makes mana_tx_timeout() log the TX timeout and return without
queueing the per-port detach/attach recovery work.
This is a debug-only aid for bringup and qualification: skipping the
recovery reset keeps the device and queue state intact so a TX timeout
can be correlated with hardware telemetry. The knob defaults to false,
so production recovery behaviour is unchanged.
Signed-off-by: Aditya Garg <gargaditya@linux.microsoft.com>
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
Reviewed-by: Dipayaan Roy <dipayanroy@linux.microsoft.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20260710132229.2851441-1-gargaditya@linux.microsoft.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/net/mana/mana.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/mana/mana.h b/include/net/mana/mana.h index 226b61504596..4d041fb8437f 100644 --- a/include/net/mana/mana.h +++ b/include/net/mana/mana.h @@ -530,6 +530,9 @@ struct mana_port_context { struct net_device *ndev; struct work_struct queue_reset_work; + /* Debug knob to log TX timeout but skip recovery reset */ + bool tx_timeout_skip_reset; + u8 mac_addr[ETH_ALEN]; struct mana_eq *eqs; |
