From: David Miller Subject: Re: [PATCH v2] tcp: syncookies: do not use getnstimeofday() Date: Thu, 20 Mar 2014 15:36:45 -0400 (EDT) Message-ID: <20140320.153645.1726836204043973392.davem@davemloft.net> References: <1395261524.9114.60.camel@edumazet-glaptop2.roam.corp.google.com> <1395263181.9114.69.camel@edumazet-glaptop2.roam.corp.google.com> <1395288141.9114.82.camel@edumazet-glaptop2.roam.corp.google.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: fw@strlen.de, netdev@vger.kernel.org To: eric.dumazet@gmail.com Return-path: Received: from shards.monkeyblade.net ([149.20.54.216]:50725 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759823AbaCTTgt (ORCPT ); Thu, 20 Mar 2014 15:36:49 -0400 In-Reply-To: <1395288141.9114.82.camel@edumazet-glaptop2.roam.corp.google.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Eric Dumazet Date: Wed, 19 Mar 2014 21:02:21 -0700 > From: Eric Dumazet > > While it is true that getnstimeofday() uses about 40 cycles if TSC > is available, it can use 1600 cycles if hpet is the clocksource. > > Switch to get_jiffies_64(), as this is more than enough, and > go back to 60 seconds periods. > > Fixes: 8c27bd75f04f ("tcp: syncookies: reduce cookie lifetime to 128 seconds") > Signed-off-by: Eric Dumazet > Cc: Florian Westphal This applies cleanly to net-next, but with this Fixes: tag I sort of suspect you are targetting this at net instead? Please be explicit as to what the target tree is when submitting patches in the future. Thanks.