Skip to contentSkip to conversation

docs: proc.rst: add softnet_stat to /proc/net table

PATCH RESEND In review [email protected] 2 participants 2 messages Dec 23, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND v3 1/1 docs: proc.rst: add softnet_stat to /proc/net table

From: Yang Yang <[email protected]>

/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.

---
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(+)
Documentation/filesystems/proc.rst +1 -0
index e224b6d5b642..9d5fd9424e8b 100644
@@ -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
Signature · 1 line
2.15.2
Reviewed-by on v3 1/1
#1 lore raw
Quoted 8 lines · On 12/23/22 10:04, [email protected] wrote:

From: Yang Yang <[email protected]>

/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.

Thanks for pinging me by resending! Indeed I always forget to review this due to busy time.

Anyway, LGTM.

Signature · 1 line
An old man doll... just what I always wanted! - Clara