Skip to content

Commit

Permalink
[openvswitch] Add new get-mempool-info and driverctl cmds
Browse files Browse the repository at this point in the history
'get-mempool-info' without specifying a netdev will capture
all the dpdk mempools that exist including ones no longer
associated with a netdev but yet to be freed.

'driverctl list-persisted' will list the overrides that are
persistent through reboots.

Signed-off-by: Kevin Traynor <[email protected]>
  • Loading branch information
kevintraynor committed Dec 5, 2023
1 parent de853ea commit 22aaf0d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sos/report/plugins/openvswitch.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ def setup(self):
"driverctl -v list-devices",
"driverctl list-overrides",
"driverctl -v list-overrides",
"driverctl list-persisted",
# Capture a list of all bond devices
"ovs-appctl bond/list",
# Capture more details from bond devices
Expand Down Expand Up @@ -159,7 +160,9 @@ def setup(self):
# Capture additional DPDK info
"ovs-appctl dpdk/lcore-list",
"ovs-appctl dpdk/log-list",
"ovs-appctl dpdk/get-malloc-stats"
"ovs-appctl dpdk/get-malloc-stats",
# Capture dpdk mempool info
"ovs-appctl netdev-dpdk/get-mempool-info"
])
# Capture DPDK and other parameters
self.add_cmd_output("ovs-vsctl -t 5 get Open_vSwitch . other_config",
Expand Down

0 comments on commit 22aaf0d

Please sign in to comment.