public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: Eric Dumazet <eric.dumazet@gmail.com>
To: Dmitry Popov <dp@highloadlab.com>
Cc: "David S. Miller" <davem@davemloft.net>,
	William.Allen.Simpson@gmail.com,
	"Andreas Petlund" <apetlund@simula.no>,
	"Ilpo Järvinen" <ilpo.jarvinen@helsinki.fi>,
	"Alexey Kuznetsov" <kuznet@ms2.inr.ac.ru>,
	"Pekka Savola (ipv6)" <pekkas@netcore.fi>,
	"James Morris" <jmorris@namei.org>,
	"Hideaki YOSHIFUJI" <yoshfuji@linux-ipv6.org>,
	"Patrick McHardy" <kaber@trash.net>,
	"Stephen Hemminger" <shemminger@vyatta.com>,
	"Herbert Xu" <herbert@gondor.apana.org.au>,
	"Gilad Ben-Yossef" <gilad@codefidence.com>,
	"Yony Amit" <yony@comsleep.com>, "Zhu Yi" <yi.zhu@intel.com>,
	linux-kernel@vger.kernel.org, netdev@vger.kernel.org
Subject: Re: [PATCH] tcp: md5 signature check scaling
Date: Wed, 27 Oct 2010 15:00:05 +0200	[thread overview]
Message-ID: <1288184405.2709.108.camel@edumazet-laptop> (raw)
In-Reply-To: <AANLkTi=U1smX6XXDMyBTicyqbUU5V-t56jmH7qtX2XW5@mail.gmail.com>

Le mercredi 27 octobre 2010 à 16:52 +0400, Dmitry Popov a écrit :
> From: Dmitry Popov <dp@highloadlab.com>
> 
> TCP MD5 signature checking without socket lock.
> 
> Each tcp_sock has 2 RCU-protected arrays (tcp[46]_md5sig_info) of
> tcp[46]_md5sig_key address-key pairs.
> Each key (tcp_md5sig_key) has kref struct so that there is no need to
> lock the whole array to work with one key.
> 
> MD5 functions were rewritten according to above statement and hash
> check (tcp_v4_inbound_md5_hash) was moved before socket lock.
> 
> Signed-off-by: Dmitry Popov <dp@highloadlab.com>
> ---
>  include/linux/tcp.h      |   14 ++-
>  include/net/tcp.h        |   82 +++++++----
>  net/ipv4/tcp_ipv4.c      |  370 ++++++++++++++++++++++++++++------------------
>  net/ipv4/tcp_minisocks.c |   26 +--
>  net/ipv4/tcp_output.c    |   12 +-
>  net/ipv6/tcp_ipv6.c      |  358 +++++++++++++++++++++++++++-----------------
>  6 files changed, 531 insertions(+), 331 deletions(-)

This is a huge patch :(

Reading changelog, I dont understand what you did, and why you did this.

You want to avoid taking the socket lock ? But we need to take it anyway
to process packets.

       reply	other threads:[~2010-10-27 13:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <AANLkTi=U1smX6XXDMyBTicyqbUU5V-t56jmH7qtX2XW5@mail.gmail.com>
2010-10-27 13:00 ` Eric Dumazet [this message]
2010-10-27 13:18   ` [PATCH] tcp: md5 signature check scaling Dmitry Popov
2010-10-27 15:56 ` Stephen Hemminger
2010-10-27 12:52 Dmitry Popov

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=1288184405.2709.108.camel@edumazet-laptop \
    --to=eric.dumazet@gmail.com \
    --cc=William.Allen.Simpson@gmail.com \
    --cc=apetlund@simula.no \
    --cc=davem@davemloft.net \
    --cc=dp@highloadlab.com \
    --cc=gilad@codefidence.com \
    --cc=herbert@gondor.apana.org.au \
    --cc=ilpo.jarvinen@helsinki.fi \
    --cc=jmorris@namei.org \
    --cc=kaber@trash.net \
    --cc=kuznet@ms2.inr.ac.ru \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pekkas@netcore.fi \
    --cc=shemminger@vyatta.com \
    --cc=yi.zhu@intel.com \
    --cc=yony@comsleep.com \
    --cc=yoshfuji@linux-ipv6.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