From 00d34d9a095d1f842253e139d69fe77b39dd361f Mon Sep 17 00:00:00 2001 From: Kevin Traynor Date: Wed, 18 Oct 2023 10:38:47 +0100 Subject: [PATCH] [openvswitch] Add driverctl verbose option driverctl commands give info about which drivers are used for devices. They list PCI address and driver used e.g. 0000:01:00.0 vfio-pci This can usually be correlated to the device type through lspci. However, lspci may not be available if only some plugins were captured as part of the report. Even when lspci info is available, it is still convienent to have the device type co-located with the driver and override information. Add verbose option to driverctl commands that support it to also list device type. e.g. (wrapped for line length) 0000:01:00.0 vfio-pci (82599ES 10-Gigabit SFI/SFP+ Network Connection (Ethernet 10G 4P X520/I350 rNDC)) Signed-off-by: Kevin Traynor --- sos/report/plugins/openvswitch.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sos/report/plugins/openvswitch.py b/sos/report/plugins/openvswitch.py index 67a0afc985..eec6f7cefd 100644 --- a/sos/report/plugins/openvswitch.py +++ b/sos/report/plugins/openvswitch.py @@ -102,7 +102,9 @@ def setup(self): "dpdk_nic_bind --status", "dpdk-devbind.py --status", "driverctl list-devices", + "driverctl -v list-devices", "driverctl list-overrides", + "driverctl -v list-overrides", # Capture a list of all bond devices "ovs-appctl bond/list", # Capture more details from bond devices