(unknown)
From: Masahide NAKAMURA <hidden>
Date: 2007-12-22 01:49:01
Subsystem:
documentation, networking [general], the rest · Maintainers:
Jonathan Corbet, "David S. Miller", Eric Dumazet, Jakub Kicinski, Paolo Abeni, Linus Torvalds
Subject: [XFRM] Documentaion: Fix error example at XFRMOUTSTATEMODEERROR. (Re: [XFRM]: Fix outbound statistics.) Hello, On Fri, 21 Dec 2007 23:11:11 +0800 Herbert Xu [off-list ref] wrote:
On Fri, Dec 21, 2007 at 11:25:00PM +0900, Masahide NAKAMURA wrote:quoted
do { err = xfrm_state_check_space(x, skb); - if (err) + if (err) { + XFRM_INC_STATS(LINUX_MIB_XFRMOUTERROR); goto error_nolock; + } err = x->outer_mode->output(x, skb); - if (err) + if (err) { + XFRM_INC_STATS(LINUX_MIB_XFRMOUTSTATEMODEERROR);BTW, none of our existing mode output functions actually return an error. I noticed that the description for this field is actually "Transformation mode specific error, e.g. Outer header space is not enough". This is slightly misleading as output header space is checked by xfrm_state_check_space so if there's an error that's where it'll show up.
Thanks for comment, Herbert. I fix the documentation to remove "e.g. Outer header space is not enough" from XFRMSTATEMODEERROR. About error code from xfrm_state_check_space(), I still map it XFRMOUTERROR (other errors) this time because I think the error here is not a length error by protocol (e.g MTU related things) but an internal buffer management. Any comments for the statistics are still welcomed. David, please apply the following patch, too. [XFRM] Documentaion: Fix error example at XFRMOUTSTATEMODEERROR. Signed-off-by: Masahide NAKAMURA <redacted> --- Documentation/networking/xfrm_proc.txt | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/Documentation/networking/xfrm_proc.txt b/Documentation/networking/xfrm_proc.txt
index ec9045b..53c1a58 100644
--- a/Documentation/networking/xfrm_proc.txt
+++ b/Documentation/networking/xfrm_proc.txt@@ -60,7 +60,6 @@ XfrmOutStateProtoError: Transformation protocol specific error XfrmOutStateModeError: Transformation mode specific error - e.g. Outer header space is not enough XfrmOutStateExpired: State is expired XfrmOutPolBlock:
--
1.4.4.2