[ovs-dev] [branch-2.9 PATCH 2/2] netdev-dpdk: Add mempool reuse/free debug.
Kevin Traynor
ktraynor at redhat.com
Thu Mar 29 14:14:57 UTC 2018
There is debug when a new mempool is created, but not
when it is reused or freed. Add these as it is very
difficult to debug mempool issues from logs without
them.
Signed-off-by: Kevin Traynor <ktraynor at redhat.com>
---
lib/netdev-dpdk.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c
index 9b8e732..0d59eac 100644
--- a/lib/netdev-dpdk.c
+++ b/lib/netdev-dpdk.c
@@ -598,4 +598,5 @@ dpdk_mp_sweep(void) OVS_REQUIRES(dpdk_mp_mutex)
LIST_FOR_EACH_SAFE (dmp, next, list_node, &dpdk_mp_list) {
if (!dmp->refcount && rte_mempool_full(dmp->mp)) {
+ VLOG_DBG("Freeing mempool \"%s\"", dmp->mp->name);
ovs_list_remove(&dmp->list_node);
rte_mempool_free(dmp->mp);
@@ -614,4 +615,5 @@ dpdk_mp_get(int socket_id, int mtu)
LIST_FOR_EACH (dmp, list_node, &dpdk_mp_list) {
if (dmp->socket_id == socket_id && dmp->mtu == mtu) {
+ VLOG_DBG("Reusing mempool \"%s\"", dmp->mp->name);
dmp->refcount++;
reuse = true;
--
1.8.3.1
More information about the dev
mailing list