!48 fix cat net_qos_stats warning in dmesg when qos not enable
From: @kwb0523 Reviewed-by: @nlgwcy Signed-off-by: @nlgwcy
This commit is contained in:
commit
2e68aafcaf
28
0007-fix-net_qos_stats-warning-when-qos-not-enable.patch
Normal file
28
0007-fix-net_qos_stats-warning-when-qos-not-enable.patch
Normal 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
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
Name: oncn-bwm
|
||||
Version: 1.1
|
||||
Release: 6
|
||||
Release: 7
|
||||
Summary: Pod bandwidth management in mixed deployment scenarios of online and offline services
|
||||
License: GPL-2.0
|
||||
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
|
||||
Patch9005: 0005-fix-some-review-issues.patch
|
||||
Patch9006: 0006-fix-input-options-unused-warning.patch
|
||||
Patch9007: 0007-fix-net_qos_stats-warning-when-qos-not-enable.patch
|
||||
|
||||
%description
|
||||
Pod bandwidth management in mixed deployment scenarios of online and offline services
|
||||
@ -114,6 +115,9 @@ depmod -a
|
||||
|
||||
|
||||
%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
|
||||
- fix input options unused warning to fix clang built error
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user