diff --git a/0007-fix-net_qos_stats-warning-when-qos-not-enable.patch b/0007-fix-net_qos_stats-warning-when-qos-not-enable.patch new file mode 100644 index 0000000000000000000000000000000000000000..0e205389231d56f8dbdf4235757de54eaeb1d7de --- /dev/null +++ b/0007-fix-net_qos_stats-warning-when-qos-not-enable.patch @@ -0,0 +1,28 @@ +From f10ec3e0c83efedb238f1ed55e007f4905410463 Mon Sep 17 00:00:00 2001 +From: kwb0523 +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 + diff --git a/oncn-bwm.spec b/oncn-bwm.spec index 192b656059425577dbeecdec8becbf27a4fbc6a2..d7e1a2156074106cc31e8aba3e671f812c9888d4 100644 --- a/oncn-bwm.spec +++ b/oncn-bwm.spec @@ -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 - 1.1-7 +- fix net_qos_stats warning when qos not enable + * Mon Sep 25 2023 cf-zhao - 1.1-6 - fix input options unused warning to fix clang built error