28 lines
938 B
Diff
28 lines
938 B
Diff
From dad8149d187448f85be497ce3bb6c34bf1ffde5e Mon Sep 17 00:00:00 2001
|
|
From: Changsheng Wu <wuchangsheng2@huawei.com>
|
|
Date: Sat, 18 Dec 2021 16:54:03 +0800
|
|
Subject: [PATCH] 0010
|
|
|
|
---
|
|
lib/eal/common/eal_common_fbarray.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/lib/eal/common/eal_common_fbarray.c b/lib/eal/common/eal_common_fbarray.c
|
|
index d4a4cea7c1..fa726cd2f5 100644
|
|
--- a/lib/eal/common/eal_common_fbarray.c
|
|
+++ b/lib/eal/common/eal_common_fbarray.c
|
|
@@ -1122,8 +1122,8 @@ rte_sec_fbarray_destroy(struct rte_fbarray *arr,
|
|
|
|
fd = open(path, O_RDONLY);
|
|
if (fd < 0) {
|
|
- RTE_LOG(ERR, EAL, "Could not open fbarray file: %s\n", strerror(errno));
|
|
- return -1;
|
|
+ RTE_LOG(WARNING, EAL, "Could not open %s: %s, and just skip it\n", path, strerror(errno));
|
|
+ return 0;
|
|
}
|
|
if (flock(fd, LOCK_EX | LOCK_NB)) {
|
|
RTE_LOG(DEBUG, EAL, "Cannot destroy fbarray - another process is using it\n");
|
|
--
|
|
2.27.0
|
|
|