加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0002-gazelle_stat_pkts-gazelle_stat_low_power_info.patch 1.54 KB
一键复制 编辑 原始数据 按行查看 历史
From 8f477abc2530a4defc37d2e443eca19271c1b6b8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=AD=99=E8=8B=8F=E7=9A=96?= <sunsuwan3@huawei.com>
Date: Tue, 4 Apr 2023 09:19:48 +0000
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9gazelle=5Fstat=5Fpkts?=
=?UTF-8?q?=EF=BC=8Cgazelle=5Fstat=5Flow=5Fpower=5Finfo=E7=BB=93=E6=9E=84?=
=?UTF-8?q?=E4=BD=93=E6=88=90=E5=91=98=E9=A1=BA=E5=BA=8F=EF=BC=8C=E6=9D=A5?=
=?UTF-8?q?=E4=BD=BF=E7=BB=93=E6=9E=84=E4=BD=93=E5=A4=A7=E5=B0=8F=E5=8F=98?=
=?UTF-8?q?=E5=B0=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: 孙苏皖 <sunsuwan3@huawei.com>
---
src/common/gazelle_dfx_msg.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/common/gazelle_dfx_msg.h b/src/common/gazelle_dfx_msg.h
index e4da687..7ce8874 100644
--- a/src/common/gazelle_dfx_msg.h
+++ b/src/common/gazelle_dfx_msg.h
@@ -79,11 +79,11 @@ struct gazelle_wakeup_stat {
};
struct gazelle_stat_pkts {
- uint64_t call_msg_cnt;
uint16_t conn_num;
+ uint32_t mempool_freecnt;
+ uint64_t call_msg_cnt;
uint64_t recv_list_cnt;
uint64_t call_alloc_fail;
- uint32_t mempool_freecnt;
struct gazelle_stack_stat stack_stat;
struct gazelle_wakeup_stat wakeup_stat;
};
@@ -194,9 +194,9 @@ struct gazelle_stack_latency {
struct gazelle_stat_low_power_info {
uint16_t low_power_mod;
+ uint16_t lpm_rx_pkts;
uint32_t lpm_pkts_in_detect;
uint32_t lpm_detect_ms;
- uint16_t lpm_rx_pkts;
};
#define RTE_ETH_XSTATS_NAME_SIZE 64
--
2.23.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化