aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/plugins/openvswitch.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/sos/plugins/openvswitch.py b/sos/plugins/openvswitch.py
index a137eda7..d4e055f3 100644
--- a/sos/plugins/openvswitch.py
+++ b/sos/plugins/openvswitch.py
@@ -135,6 +135,18 @@ class OpenVSwitch(Plugin):
"ovs-ofctl -O %s dump-ports-desc %s" % (flow, br)
])
+ # Gather info on the DPDK mempools associated with each DPDK port
+ br_list_result = self.call_ext_prog("ovs-vsctl -t 5 list-br")
+ if br_list_result['status'] == 0:
+ for br in br_list_result['output'].splitlines():
+ port_list_result = self.call_ext_prog("ovs-vsctl -t 5 "
+ "list-ports %s" % br)
+ if port_list_result['status'] == 0:
+ for port in port_list_result['output'].splitlines():
+ self.add_cmd_output(
+ "ovs-appctl netdev-dpdk/get-mempool-info %s" % port
+ )
+
class RedHatOpenVSwitch(OpenVSwitch, RedHatPlugin):