[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20100108.000034.48682320.davem@davemloft.net>
Date: Fri, 08 Jan 2010 00:00:34 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: opurdila@...acom.com
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH] tcp: update the netstamp_needed counter when cloning
sockets
From: Octavian Purdila <opurdila@...acom.com>
Date: Wed, 6 Jan 2010 01:06:30 +0200
> This fixes a netstamp_needed accounting issue when the listen socket
> has SO_TIMESTAMP set:
>
> s = socket(AF_INET, SOCK_STREAM, 0);
> setsockopt(s, SOL_SOCKET, SO_TIMESTAMP, 1); -> netstamp_needed = 1
> bind(s, ...);
> listen(s, ...);
> s2 = accept(s, ...); -> netstamp_needed = 1
> close(s2); -> netstamp_needed = 0
> close(s); -> netstamp_needed = -1
>
> Signed-off-by: Octavian Purdila <opurdila@...acom.com>
Applied and queued up for -stable, thanks for fixing this!
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists