netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Florian Westphal <fw@strlen.de>
To: Eric Dumazet <eric.dumazet@gmail.com>
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH v2] tcp: syncookies: do not use getnstimeofday()
Date: Thu, 20 Mar 2014 09:45:27 +0100	[thread overview]
Message-ID: <20140320084527.GB5080@breakpoint.cc> (raw)
In-Reply-To: <1395288141.9114.82.camel@edumazet-glaptop2.roam.corp.google.com>

Eric Dumazet <eric.dumazet@gmail.com> wrote:
> From: Eric Dumazet <edumazet@google.com>
> 
> 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 <edumazet@google.com>
> Cc: Florian Westphal <fw@strlen.de>

Acked-by: Florian Westphal <fw@strlen.de>

  reply	other threads:[~2014-03-20  8:45 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-20 20:32 [PATCH v3 -next 1/2] tcp: syncookies: reduce cookie lifetime to 128 seconds Florian Westphal
2013-09-20 20:32 ` [PATCH v3 -next 2/2] tcp: syncookies: reduce mss table to four values Florian Westphal
2013-09-24 14:40   ` David Miller
2013-09-24 14:40 ` [PATCH v3 -next 1/2] tcp: syncookies: reduce cookie lifetime to 128 seconds David Miller
2014-03-19 20:38 ` Eric Dumazet
2014-03-19 21:06   ` [PATCH] tcp: syncookies: do not use getnstimeofday() Eric Dumazet
2014-03-19 22:56     ` Florian Westphal
2014-03-20  2:26       ` Eric Dumazet
2014-03-20  2:37         ` Eric Dumazet
2014-03-20  4:02     ` [PATCH v2] " Eric Dumazet
2014-03-20  8:45       ` Florian Westphal [this message]
2014-03-20 19:36       ` David Miller
2014-03-20 20:07         ` Eric Dumazet
2014-03-20 20:16           ` David Miller
2014-03-20 20:37             ` Eric Dumazet
2014-03-20 20:23       ` David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140320084527.GB5080@breakpoint.cc \
    --to=fw@strlen.de \
    --cc=eric.dumazet@gmail.com \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).