From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Dumazet Subject: Re: [PATCH] tcp: md5 signature check scaling Date: Wed, 27 Oct 2010 15:00:05 +0200 Message-ID: <1288184405.2709.108.camel@edumazet-laptop> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: "David S. Miller" , William.Allen.Simpson@gmail.com, Andreas Petlund , Ilpo =?ISO-8859-1?Q?J=E4rvinen?= , Alexey Kuznetsov , "Pekka Savola (ipv6)" , James Morris , Hideaki YOSHIFUJI , Patrick McHardy , Stephen Hemminger , Herbert Xu , Gilad Ben-Yossef , Yony Amit , Zhu Yi , linux-kernel@vger.kernel.org, netdev@vger.kernel.org To: Dmitry Popov Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org Le mercredi 27 octobre 2010 =C3=A0 16:52 +0400, Dmitry Popov a =C3=A9cr= it : > From: Dmitry Popov >=20 > TCP MD5 signature checking without socket lock. >=20 > 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. >=20 > MD5 functions were rewritten according to above statement and hash > check (tcp_v4_inbound_md5_hash) was moved before socket lock. >=20 > Signed-off-by: Dmitry Popov > --- > 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= =2E You want to avoid taking the socket lock ? But we need to take it anywa= y to process packets.