[PATCH linux-next v3] docs: proc.rst: add softnet_stat to /proc/net table

yang.yang29@zte.com.cn posted 1 patch 2 years, 9 months ago
There is a newer version of this series
Documentation/filesystems/proc.rst | 1 +
1 file changed, 1 insertion(+)
[PATCH linux-next v3] docs: proc.rst: add softnet_stat to /proc/net table
Posted by yang.yang29@zte.com.cn 2 years, 9 months ago
From: Yang Yang <yang.yang29@zte.com.cn>

/proc/net/softnet_stat exists for a long time, but proc.rst miss it.
Softnet_stat shows some statistics of struct softnet_data of online
CPUs. Struct softnet_data manages incoming and output packets
on per-CPU queues. Note that fastroute and cpu_collision in
softnet_stat are obsolete and their value is always 0.

Signed-off-by: Yang Yang <yang.yang29@zte.com.cn>
Reviewed-by: xu xin <xu.xin16@zte.com.cn>
Reviewed-by: Zhang Yunkai <zhang.yunkai@zte.com.cn>
---
Changes since v2: - refine patch subject and git log, thanks to Bagas Sanjaya.
Changes since v1: - refine patch subject
---
 Documentation/filesystems/proc.rst | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/filesystems/proc.rst b/Documentation/filesystems/proc.rst
index e224b6d5b642..9d5fd9424e8b 100644
--- a/Documentation/filesystems/proc.rst
+++ b/Documentation/filesystems/proc.rst
@@ -1284,6 +1284,7 @@ support this. Table 1-9 lists the files and their meaning.
  rt_cache      Routing cache
  snmp          SNMP data
  sockstat      Socket statistics
+ softnet_stat  Per-CPU incoming packets queues statistics of online CPUs
  tcp           TCP  sockets
  udp           UDP sockets
  unix          UNIX domain sockets
-- 
2.15.2
Re: [PATCH linux-next v3] docs: proc.rst: add softnet_stat to /proc/net table
Posted by Jonathan Corbet 2 years, 8 months ago
<yang.yang29@zte.com.cn> writes:

> From: Yang Yang <yang.yang29@zte.com.cn>
>
> /proc/net/softnet_stat exists for a long time, but proc.rst miss it.
> Softnet_stat shows some statistics of struct softnet_data of online
> CPUs. Struct softnet_data manages incoming and output packets
> on per-CPU queues. Note that fastroute and cpu_collision in
> softnet_stat are obsolete and their value is always 0.
>
> Signed-off-by: Yang Yang <yang.yang29@zte.com.cn>
> Reviewed-by: xu xin <xu.xin16@zte.com.cn>
> Reviewed-by: Zhang Yunkai <zhang.yunkai@zte.com.cn>
> ---
> Changes since v2: - refine patch subject and git log, thanks to Bagas Sanjaya.
> Changes since v1: - refine patch subject
> ---
>  Documentation/filesystems/proc.rst | 1 +
>  1 file changed, 1 insertion(+)

Applied, thanks.

jon