Skip to content

Commit

Permalink
xfrm: update the stats documentation
Browse files Browse the repository at this point in the history
Add a couple of stats that aren't in the documentation file
and rework the top description to be a little more readable.

Signed-off-by: Shannon Nelson <shannon.nelson@oracle.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
  • Loading branch information
Shannon Nelson authored and Steffen Klassert committed Dec 22, 2017
1 parent 9cb0d21 commit 1a4bb1d
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions Documentation/networking/xfrm_proc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ Masahide NAKAMURA <nakam@linux-ipv6.org>

Transformation Statistics
-------------------------
xfrm_proc is a statistics shown factor dropped by transformation
for developer.
It is a counter designed from current transformation source code
and defined like linux private MIB.

Inbound statistics
~~~~~~~~~~~~~~~~~~
The xfrm_proc code is a set of statistics showing numbers of packets
dropped by the transformation code and why. These counters are defined
as part of the linux private MIB. These counters can be viewed in
/proc/net/xfrm_stat.


Inbound errors
~~~~~~~~~~~~~~
XfrmInError:
All errors which is not matched others
XfrmInBufferError:
Expand Down Expand Up @@ -46,6 +48,10 @@ XfrmInPolBlock:
Policy discards
XfrmInPolError:
Policy error
XfrmAcquireError:
State hasn't been fully acquired before use
XfrmFwdHdrError:
Forward routing of a packet is not allowed

Outbound errors
~~~~~~~~~~~~~~~
Expand All @@ -72,3 +78,5 @@ XfrmOutPolDead:
Policy is dead
XfrmOutPolError:
Policy error
XfrmOutStateInvalid:
State is invalid, perhaps expired

0 comments on commit 1a4bb1d

Please sign in to comment.