fix net_qos_stats warning when qos not enable

This commit is contained in:
kwb0523 2023-10-18 17:14:14 +08:00
parent 5da42ada1d
commit d93f8041ee
2 changed files with 33 additions and 1 deletions

View File

@ -0,0 +1,28 @@
From f10ec3e0c83efedb238f1ed55e007f4905410463 Mon Sep 17 00:00:00 2001
From: kwb0523 <kwb0523@163.com>
Date: Wed, 18 Oct 2023 16:29:50 +0800
Subject: [PATCH] fix net_qos_stats warning when qos not enable
---
ko/bwm.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/ko/bwm.c b/ko/bwm.c
index 6be6cbe..8951217 100644
--- a/ko/bwm.c
+++ b/ko/bwm.c
@@ -310,11 +310,7 @@ static int proc_net_qos_stats_single_open(struct inode *inode, struct file *file
ret = qos_cmd_upcall(cmd);
if (ret != 0) {
BWM_LOG_ERR("read net_qos_stats failed");
- atomic_xchg(&stats_flag, 0);
- return ret;
}
- single_open(file, proc_net_qos_stats_open, NULL);
- return 0;
}
atomic_xchg(&stats_flag, 0);
return single_open(file, proc_net_qos_stats_open, NULL);
--
2.33.0

View File

@ -1,6 +1,6 @@
Name: oncn-bwm Name: oncn-bwm
Version: 1.1 Version: 1.1
Release: 6 Release: 7
Summary: Pod bandwidth management in mixed deployment scenarios of online and offline services Summary: Pod bandwidth management in mixed deployment scenarios of online and offline services
License: GPL-2.0 License: GPL-2.0
URL: https://gitee.com/src-openeuler/oncn-bwm URL: https://gitee.com/src-openeuler/oncn-bwm
@ -20,6 +20,7 @@ Patch9003: 0003-add-proc-file-interface.patch
Patch9004: 0004-fix-offline-packets-block.patch Patch9004: 0004-fix-offline-packets-block.patch
Patch9005: 0005-fix-some-review-issues.patch Patch9005: 0005-fix-some-review-issues.patch
Patch9006: 0006-fix-input-options-unused-warning.patch Patch9006: 0006-fix-input-options-unused-warning.patch
Patch9007: 0007-fix-net_qos_stats-warning-when-qos-not-enable.patch
%description %description
Pod bandwidth management in mixed deployment scenarios of online and offline services Pod bandwidth management in mixed deployment scenarios of online and offline services
@ -114,6 +115,9 @@ depmod -a
%changelog %changelog
* Wed Oct 18 2023 JofDiamonds <kwb0523@163.com> - 1.1-7
- fix net_qos_stats warning when qos not enable
* Mon Sep 25 2023 cf-zhao <zhaochuanfeng@huawei.com> - 1.1-6 * Mon Sep 25 2023 cf-zhao <zhaochuanfeng@huawei.com> - 1.1-6
- fix input options unused warning to fix clang built error - fix input options unused warning to fix clang built error