]> git.ipfire.org Git - thirdparty/linux.git/commit
eth: fbnic: report FW uptime in health diagnose
authorJakub Kicinski <kuba@kernel.org>
Tue, 16 Sep 2025 23:14:19 +0000 (16:14 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 18 Sep 2025 09:37:23 +0000 (11:37 +0200)
commit6da8344f92dfc607069ed10ed5ba76b61e612691
tree08911d6438d2a35396c7a50119f9a6babd90b4fd
parent005a54722e9d493be58405a77f2a444e06f03be0
eth: fbnic: report FW uptime in health diagnose

FW crashes are detected based on uptime going back, expose the uptime
via devlink health diagnose.

 $ devlink -j health diagnose pci/0000:01:00.0 reporter fw
 {"last_heartbeat":{"fw_uptime":{"sec":201,"msec":76}}}
 $ devlink -j health diagnose pci/0000:01:00.0 reporter fw
 last_heartbeat:
    fw_uptime:
      sec: 201 msec: 76

Reviewed-by: Lee Trager <lee@trager.us>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250916231420.1693955-9-kuba@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Documentation/networking/device_drivers/ethernet/meta/fbnic.rst
drivers/net/ethernet/meta/fbnic/fbnic_devlink.c