All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/3] sctp: export SctpT1Retransmits to /proc/net/sctp/snmp
@ 2010-07-02  8:17 Shan Wei
  2010-07-02 14:31 ` Vlad Yasevich
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Shan Wei @ 2010-07-02  8:17 UTC (permalink / raw)
  To: linux-sctp


SctpT1Retransmits is defined and counted, but is not exported
to snmp file.

We don't know if any user applications read this snmp file, so
we add it to he end of snmp file. This seems be more safe than
exporting it according to the definition in order.


Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com>
---
 net/sctp/proc.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/net/sctp/proc.c b/net/sctp/proc.c
index 61aacfb..5584d1a 100644
--- a/net/sctp/proc.c
+++ b/net/sctp/proc.c
@@ -73,6 +73,7 @@ static const struct snmp_mib sctp_snmp_list[] = {
 	SNMP_MIB_ITEM("SctpInPktBacklog", SCTP_MIB_IN_PKT_BACKLOG),
 	SNMP_MIB_ITEM("SctpInPktDiscards", SCTP_MIB_IN_PKT_DISCARDS),
 	SNMP_MIB_ITEM("SctpInDataChunkDiscards", SCTP_MIB_IN_DATA_CHUNK_DISCARDS),
+	SNMP_MIB_ITEM("SctpT1Retransmits", SCTP_MIB_T1_RETRANSMITS),
 	SNMP_MIB_SENTINEL
 };
 
-- 
1.7.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/3] sctp: export SctpT1Retransmits to /proc/net/sctp/snmp
  2010-07-02  8:17 [PATCH 2/3] sctp: export SctpT1Retransmits to /proc/net/sctp/snmp Shan Wei
@ 2010-07-02 14:31 ` Vlad Yasevich
  2010-07-05  2:14 ` Shan Wei
  2010-07-06 13:38 ` Vlad Yasevich
  2 siblings, 0 replies; 4+ messages in thread
From: Vlad Yasevich @ 2010-07-02 14:31 UTC (permalink / raw)
  To: linux-sctp

Hi

Shan Wei wrote:
> SctpT1Retransmits is defined and counted, but is not exported
> to snmp file.
> 
> We don't know if any user applications read this snmp file, so
> we add it to he end of snmp file. This seems be more safe than
> exporting it according to the definition in order.
> 
> 
> Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com>
> ---
>  net/sctp/proc.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/net/sctp/proc.c b/net/sctp/proc.c
> index 61aacfb..5584d1a 100644
> --- a/net/sctp/proc.c
> +++ b/net/sctp/proc.c
> @@ -73,6 +73,7 @@ static const struct snmp_mib sctp_snmp_list[] = {
>  	SNMP_MIB_ITEM("SctpInPktBacklog", SCTP_MIB_IN_PKT_BACKLOG),
>  	SNMP_MIB_ITEM("SctpInPktDiscards", SCTP_MIB_IN_PKT_DISCARDS),
>  	SNMP_MIB_ITEM("SctpInDataChunkDiscards", SCTP_MIB_IN_DATA_CHUNK_DISCARDS),
> +	SNMP_MIB_ITEM("SctpT1Retransmits", SCTP_MIB_T1_RETRANSMITS),
>  	SNMP_MIB_SENTINEL
>  };
>  

Why do you need that when we already have SctpT1InitExpireds and
SctpT1CookieExpireds.  Just sum them together and you get the
the T1_RETRANSMITS.

-vlad

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/3] sctp: export SctpT1Retransmits to /proc/net/sctp/snmp
  2010-07-02  8:17 [PATCH 2/3] sctp: export SctpT1Retransmits to /proc/net/sctp/snmp Shan Wei
  2010-07-02 14:31 ` Vlad Yasevich
@ 2010-07-05  2:14 ` Shan Wei
  2010-07-06 13:38 ` Vlad Yasevich
  2 siblings, 0 replies; 4+ messages in thread
From: Shan Wei @ 2010-07-05  2:14 UTC (permalink / raw)
  To: linux-sctp

Hi vlad:

Vlad Yasevich wrote, at 07/02/2010 10:31 PM:
> Why do you need that when we already have SctpT1InitExpireds and
> SctpT1CookieExpireds.  Just sum them together and you get the
> the T1_RETRANSMITS.

T1_RETRANSMITS is not equal to the summation of  SctpT1InitExpireds
and SctpT1CookieExpireds.

If an host received stale cookie error at COOKIE-ECHOED state,
it will sent a new INIT chunk to the endpoint and restart to set up
the association. The resented new INIT chunk is counted to T1_RETRANSMITS.

SctpT1InitExpireds/SctpT1CookieExpireds is counted for timeout event of
T1_INIT/T1_COOKIE.

-- 
Best Regards
-----
Shan Wei

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/3] sctp: export SctpT1Retransmits to /proc/net/sctp/snmp
  2010-07-02  8:17 [PATCH 2/3] sctp: export SctpT1Retransmits to /proc/net/sctp/snmp Shan Wei
  2010-07-02 14:31 ` Vlad Yasevich
  2010-07-05  2:14 ` Shan Wei
@ 2010-07-06 13:38 ` Vlad Yasevich
  2 siblings, 0 replies; 4+ messages in thread
From: Vlad Yasevich @ 2010-07-06 13:38 UTC (permalink / raw)
  To: linux-sctp

Shan Wei wrote:
> Hi vlad:
> 
> Vlad Yasevich wrote, at 07/02/2010 10:31 PM:
>> Why do you need that when we already have SctpT1InitExpireds and
>> SctpT1CookieExpireds.  Just sum them together and you get the
>> the T1_RETRANSMITS.
> 
> T1_RETRANSMITS is not equal to the summation of  SctpT1InitExpireds
> and SctpT1CookieExpireds.
> 
> If an host received stale cookie error at COOKIE-ECHOED state,
> it will sent a new INIT chunk to the endpoint and restart to set up
> the association. The resented new INIT chunk is counted to T1_RETRANSMITS.
> 
> SctpT1InitExpireds/SctpT1CookieExpireds is counted for timeout event of
> T1_INIT/T1_COOKIE.
> 

So I fail to see the usefulness of showing and even keeping that counter.
When you look at the value, what new information will it provide you?

If it is only the retransmissions due to stale cookie error, then by all
means, track that value instead.  That would actually provide new and useful
data.  That's really the gist of my objection.  There is no reason to track
and display useless pieces of information.

-vlad

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-07-06 13:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-02  8:17 [PATCH 2/3] sctp: export SctpT1Retransmits to /proc/net/sctp/snmp Shan Wei
2010-07-02 14:31 ` Vlad Yasevich
2010-07-05  2:14 ` Shan Wei
2010-07-06 13:38 ` Vlad Yasevich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.