lkml.org 
[lkml]   [2013]   [Oct]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [PATCH 1/6] net: ip4_datagram_connect: Use correct form of statistics update
Same issue in ipv6 code.


Subject: net: Fix statistics update in ip6

ipv6 does the same as ipv4. IP6_INC_STATS must be used outside
of BH sections.

Signed-off-by: Christoph Lameter <cl@linux.com>

Index: linux/net/ipv6/ip6_output.c
===================================================================
--- linux.orig/net/ipv6/ip6_output.c 2013-10-10 11:01:01.119771564 -0500
+++ linux/net/ipv6/ip6_output.c 2013-10-16 08:48:19.474562100 -0500
@@ -909,7 +909,7 @@ static int ip6_dst_lookup_tail(struct so

out_err_release:
if (err == -ENETUNREACH)
- IP6_INC_STATS_BH(net, NULL, IPSTATS_MIB_OUTNOROUTES);
+ IP6_INC_STATS(net, NULL, IPSTATS_MIB_OUTNOROUTES);
dst_release(*dst);
*dst = NULL;
return err;

\
 
 \ /
  Last update: 2013-10-16 16:41    [W:0.059 / U:0.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site