当前位置: 首页 > news >正文

ifconfig statistics

最近碰到一个bug,ifconfig不显示收发的statistics。ifconfig的代码在:
https://github.com/giftnuss/net-tools.git

从代码可以看出,数据是从下面的sysfs文件夹里读出来的:

/sys/class/net/enp8s0f0_1/statistics

从驱动的角度说,下面的函数会被调到:
 

[Wed May  7 08:47:27 2025] mlx5e_rep_get_stats: enp8s0f0_1, ovs-vswitchd
[Wed May  7 08:47:27 2025] mlx5e_stats_update_ndo_stats: 1,  ffffffffc12f8c81
[Wed May  7 08:47:27 2025] mlx5e_queue_update_stats: queue_work
[Wed May  7 08:47:27 2025] mlx5e_rep_get_stats: enp8s0f0_1, ovs-vswitchd
[Wed May  7 08:47:27 2025] mlx5e_update_stats_work: caled, ffffffffc1249150
[Wed May  7 08:47:27 2025] mlx5e_queue_update_stats: queue_work
[Wed May  7 08:47:27 2025] mlx5e_stats_grp_vport_rep_update_stats: called

mlx5e_stats_grp_vport_rep_update_stats的定义在:

(gdb) list *(mlx5e_stats_grp_vport_rep_update_stats)
0x91550 is in mlx5e_stats_grp_vport_rep_update_stats (drivers/net/ethernet/mellanox/mlx5/core/en_rep.c:189).
188     static MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS(vport_rep)
189     {
190             struct mlx5e_rep_stats *rep_stats = &priv->stats.rep_stats;
191             int outlen = MLX5_ST_SZ_BYTES(query_vport_counter_out);
192             struct mlx5_eswitch *esw = priv->mdev->priv.eswitch;
193             struct mlx5e_rep_priv *rpriv = priv->ppriv;

http://www.xdnf.cn/news/327025.html

相关文章:

  • springboot使用阿里云OSS实现文件上传
  • 云上玩转Qwen3系列之二:PAI-LangStudio搭建联网搜索和RAG增强问答应用
  • C++初阶 —— 类和对象
  • C++ 中的 `it->second` 和 `it.second`:迭代器与对象访问的微妙区别
  • 如何延长电脑使用寿命?
  • Cadence 高速系统设计流程及工具使用二
  • 学习黑客 Linux用户管理
  • Linux理解文件fd
  • 热部署相关
  • 说说es配置项的动态静态之分和集群配置更新API
  • Filecoin矿工资金管理指南:使用lotus-shed actor withdraw工具
  • Kubernetes学习笔记
  • 浅谈图像分割中预测图与标签图的对应关系
  • C++面向对象设计类的核心知识详解总述(1)
  • Spring 与 MyBatis 整合时的事务管理细节
  • 如何使用docker配置ros-noetic环境并使用rviz,gazebo
  • Nvidia-smi 运行失败(Failed to initialize NVML: Driver/library version mismatch)
  • Elasticsearch 8.x 在 java 中的使用情况
  • MIT关节电机相序校准
  • upload-labs靶场通关详解:第二关
  • 绕线机的制作与研究
  • very_easy_sql(SSRF+SQL注入)
  • 配置指定地址的conda虚拟Python环境
  • gitcode 上传文件报错文件太大has exceeded the limited size (10 MiB) in commit
  • dragonfly Prometheus 没有监控指标 dragonfly_scheduler_host_traffic
  • 益鑫通连接器车规级,非车规可替代JST,MOLEX
  • Keil安装pack包时报错解决:Cannot copy license file to “.Download“ folder.
  • string--OJ3
  • 基于Django框架开发的B2C天天生鲜电商平台
  • 306.检查是否所有A都在B之前