From patchwork Wed Nov 18 18:04:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Abeni X-Patchwork-Id: 1402443 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.01.org (client-ip=2001:19d0:306:5::1; helo=ml01.01.org; envelope-from=mptcp-bounces@lists.01.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=FOBq1oct; dkim-atps=neutral Received: from ml01.01.org (ml01.01.org [IPv6:2001:19d0:306:5::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CbrM73Tmfz9sSs for ; Thu, 19 Nov 2020 05:05:23 +1100 (AEDT) Received: from ml01.vlan13.01.org (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id AE734100EBB73; Wed, 18 Nov 2020 10:05:19 -0800 (PST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=63.128.21.124; helo=us-smtp-delivery-124.mimecast.com; envelope-from=pabeni@redhat.com; receiver= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 25041100EBB71 for ; Wed, 18 Nov 2020 10:05:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1605722714; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rONHMAa+xJ4mYkA5y1BcW8LH0x1+U9nTcH6Dn9egmwg=; b=FOBq1octkZSWIsBoDBlPMrCA6tL9VtFwCFmGujc+LSmrUW4MgWI2FeV64ZnbQQBBC6xNEl +wj0CO8sFAYMoaCKTef3kmcPKh0IEOktXE5mPx29U4LXj/xySUsVtcRogzze6g8jsit70l HBU0Q1gQOswbZ4fgfRLDArcCzRHRs4U= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-148-SSEzipC4PPmHAdwJKxAxzA-1; Wed, 18 Nov 2020 13:05:12 -0500 X-MC-Unique: SSEzipC4PPmHAdwJKxAxzA-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 064B718B613A for ; Wed, 18 Nov 2020 18:05:11 +0000 (UTC) Received: from gerbillo.redhat.com (ovpn-115-70.ams2.redhat.com [10.36.115.70]) by smtp.corp.redhat.com (Postfix) with ESMTP id 376666064B for ; Wed, 18 Nov 2020 18:05:07 +0000 (UTC) From: Paolo Abeni To: mptcp@lists.01.org Date: Wed, 18 Nov 2020 19:04:39 +0100 Message-Id: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=pabeni@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Message-ID-Hash: 5DBLM4UJXGUGLHTM4FR6NWOG2WA24QYD X-Message-ID-Hash: 5DBLM4UJXGUGLHTM4FR6NWOG2WA24QYD X-MailFrom: pabeni@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.1.1 Precedence: list Subject: [MPTCP] [PATCH v3 0/7] mptcp: just another complete datapath refactor List-Id: Discussions regarding MPTCP upstreaming Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: This iteration includes many optimizations using the msk socket lock to reduce the number of mptcp_data_lock contentions. It additionally cleans a bit the mptcp_lock_sock() macro definitions and fix a few checkpatches issues. Still using the backlog, as per ML discussion Paolo Abeni (7): mptcp: open code mptcp variant for lock_sock mptcp: implement wmem reservation. mptcp: protect the rx path with the msk socket spinlock mptcp: allocate TX skbs in msk context. mptcp: avoid a few atomic ops in the rx path mptcp: simplify mptcp_nospace mptcp: use mptcp backlog. net/core/sock.c | 2 +- net/mptcp/mptcp_diag.c | 2 +- net/mptcp/options.c | 47 +-- net/mptcp/protocol.c | 721 ++++++++++++++++++++++++++++++----------- net/mptcp/protocol.h | 39 ++- net/mptcp/subflow.c | 31 +- 6 files changed, 613 insertions(+), 229 deletions(-)