1 Star 0 Fork 76

jammyjellyfish/dpdk

forked from src-openEuler/dpdk 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0255-test-mbuf-fix-mbuf-reset-test.patch 976 Bytes
一键复制 编辑 原始数据 按行查看 历史
From b6f800b2897f8e2008d0897ceaa491a357eab1cf Mon Sep 17 00:00:00 2001
From: Jie Hai <[email protected]>
Date: Tue, 31 Jan 2023 10:48:51 +0800
Subject: test/mbuf: fix mbuf reset test
[ upstream commit bf47fb83a61a4bc6bf45e1ec6e3ddd239a856190 ]
Retest "mbuf_autotest" will fail because the mbuf pool was
not freed after previous test successful done.
This patch fixes it.
Fixes: efc6f9104c80 ("mbuf: fix reset on mbuf free")
Signed-off-by: Jie Hai <[email protected]>
Reviewed-by: David Marchand <[email protected]>
---
app/test/test_mbuf.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/app/test/test_mbuf.c b/app/test/test_mbuf.c
index f54d1d7c00..cd9f8fd8cf 100644
--- a/app/test/test_mbuf.c
+++ b/app/test/test_mbuf.c
@@ -2769,6 +2769,7 @@ test_nb_segs_and_next_reset(void)
m2->nb_segs != 1 || m2->next != NULL)
GOTO_FAIL("nb_segs or next was not reset properly");
+ rte_mempool_free(pool);
return 0;
fail:
--
2.23.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jammyjellyfish/dpdk.git
[email protected]:jammyjellyfish/dpdk.git
jammyjellyfish
dpdk
dpdk
master

搜索帮助