[ovs-dev] [PATCH 3/4] netdev-dpdk: log an err message when a mempool name is empty.
antonio.fischetti at intel.com
antonio.fischetti at intel.com
Tue Sep 26 15:04:10 UTC 2017
Log an error message when the creation of a name for a
new mempool fails.
CC: Ciara Loftus <ciara.loftus at intel.com>
CC: Kevin Traynor <ktraynor at redhat.com>
CC: Aaron Conole <aconole at redhat.com>
Signed-off-by: Antonio Fischetti <antonio.fischetti at intel.com>
---
lib/netdev-dpdk.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c
index f3f42ee..7c673ec 100644
--- a/lib/netdev-dpdk.c
+++ b/lib/netdev-dpdk.c
@@ -502,6 +502,9 @@ dpdk_mp_name(struct dpdk_mp *dmp)
int ret = snprintf(mp_name, RTE_MEMPOOL_NAMESIZE, "ovs_%x_%d_%u",
h, dmp->mtu, dmp->mp_size);
if (ret < 0 || ret >= RTE_MEMPOOL_NAMESIZE) {
+ VLOG_ERR("Failed to generate a mempool name for \"%s\". "
+ "Hash:0x%x, mtu:%d, mbufs:%u",
+ dmp->if_name, h, dmp->mtu, dmp->mp_size);
return NULL;
}
return mp_name;
--
2.4.11
More information about the dev
mailing list