netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] snmp6: fix title of IPSTATS_MIB_CSUMERRORS
@ 2013-05-31 13:29 Nicolas Dichtel
  2013-05-31 13:32 ` [PATCH v2] " Nicolas Dichtel
  0 siblings, 1 reply; 6+ messages in thread
From: Nicolas Dichtel @ 2013-05-31 13:29 UTC (permalink / raw)
  To: davem; +Cc: netdev, Nicolas Dichtel

Follow the same convention than other fields, prefix this stat by 'Ip6'.

Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
---

In fact, I wonder if we cannot simply remove this stat for IPv6: there is no
checksum in IPv6, so it will always be 0 (and in fact, this stats is only
increased in net/ipv4/ip_input.c).

 net/ipv6/proc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/ipv6/proc.c b/net/ipv6/proc.c
index f3c1ff4..33b97b0 100644
--- a/net/ipv6/proc.c
+++ b/net/ipv6/proc.c
@@ -90,7 +90,7 @@ static const struct snmp_mib snmp6_ipstats_list[] = {
 	SNMP_MIB_ITEM("Ip6OutMcastOctets", IPSTATS_MIB_OUTMCASTOCTETS),
 	SNMP_MIB_ITEM("Ip6InBcastOctets", IPSTATS_MIB_INBCASTOCTETS),
 	SNMP_MIB_ITEM("Ip6OutBcastOctets", IPSTATS_MIB_OUTBCASTOCTETS),
-	SNMP_MIB_ITEM("InCsumErrors", IPSTATS_MIB_CSUMERRORS),
+	SNMP_MIB_ITEM("Ip6InCsumErrors", IPSTATS_MIB_CSUMERRORS),
 	SNMP_MIB_SENTINEL
 };
 
-- 
1.8.2.1

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

end of thread, other threads:[~2013-05-31 23:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-31 13:29 [PATCH] snmp6: fix title of IPSTATS_MIB_CSUMERRORS Nicolas Dichtel
2013-05-31 13:32 ` [PATCH v2] " Nicolas Dichtel
2013-05-31 15:13   ` Eric Dumazet
2013-05-31 15:37     ` [PATCH v3] snmp6: remove IPSTATS_MIB_CSUMERRORS Nicolas Dichtel
2013-05-31 17:11       ` Eric Dumazet
2013-05-31 23:27         ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).