From 58902e8f08d3c432541f6fc037999daafb9d5b4f Mon Sep 17 00:00:00 2001 From: Antoine Tenart Date: Thu, 30 Sep 2021 11:16:29 +0200 Subject: [networking] retrieve devlink port attributes When using sub-functions[1] gathering the devlink port attributes does provide value when debugging. If there is no devlink port, the output is empty. Example: pci/0000:04:00.0/65535: type eth netdev enp4s0f0 flavour physical port 0 splittable false pci/0000:04:00.0/32768: type eth netdev en4f0pf0sf42 flavour pcisf controller 0 pfnum 0 sfnum 42 splittable false function: hw_addr 00:00:00:00:88:88 state active opstate attached pci/0000:04:00.0/32769: type eth netdev en4f0pf0sf1 flavour pcisf controller 0 pfnum 0 sfnum 1 splittable false function: hw_addr 00:00:00:00:00:00 state active opstate attached auxiliary/mlx5_core.sf.4/131072: type eth netdev enp4s0f0s42 flavour virtual port 0 splittable false auxiliary/mlx5_core.sf.5/196608: type eth netdev enp4s0f0s1 flavour virtual port 0 splittable false [1] https://www.kernel.org/doc/html/latest/networking/devlink/devlink-port.html#subfunction Signed-off-by: Antoine Tenart --- sos/report/plugins/networking.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sos/report/plugins/networking.py b/sos/report/plugins/networking.py index 1237f629..f2bdca06 100644 --- a/sos/report/plugins/networking.py +++ b/sos/report/plugins/networking.py @@ -112,6 +112,7 @@ class Networking(Plugin): self.add_cmd_output([ "devlink dev param show", "devlink dev info", + "devlink port show", ]) devlinks = self.collect_cmd_output("devlink dev") -- cgit