net-sysfs: add backlog len and CPU id to softnet data
authorPaolo Abeni <pabeni@redhat.com>
Fri, 18 Sep 2020 16:00:46 +0000 (18:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Sep 2020 20:56:37 +0000 (13:56 -0700)
commit7d58e6555870d01d85b181ba2a16b217a1ea8bdd
tree253a8bbcae758058ac2bbc359b45592c225a5243
parentc4f084edd358e54a89c0c562b9c7c50994caffe0
net-sysfs: add backlog len and CPU id to softnet data

Currently the backlog status in not exposed to user-space.
Since long backlogs (or simply not empty ones) can be a
source of noticeable latency, -RT deployments need some way
to inspect it.

Additionally, there isn't a direct match between 'softnet_stat'
lines and the related CPU - sd for offline CPUs are not dumped -
so this patch also includes the CPU id into such entry.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/net-procfs.c