From patchwork Fri Mar 5 17:31:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Abeni X-Patchwork-Id: 1448085 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=198.145.21.10; helo=ml01.01.org; envelope-from=mptcp-bounces@lists.01.org; receiver=) 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=MpR0ukSr; dkim-atps=neutral Received: from ml01.01.org (ml01.01.org [198.145.21.10]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DsZYY236Nz9sW1 for ; Sat, 6 Mar 2021 04:32:17 +1100 (AEDT) Received: from ml01.vlan13.01.org (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 2FB58100EC1CD; Fri, 5 Mar 2021 09:32:15 -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 8F35C100EF26A for ; Fri, 5 Mar 2021 09:32:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1614965531; 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=gJjjFakZsOnthSSHoVIJTa4wa0MpdIxg/5ROQtv2J0Q=; b=MpR0ukSrP3AOvPwPjdzk0ol6UKgpO2s++s6eDE71E5wnPcEBIQCOcJ6OKCXSNyuqvxbx6h b9mRbEezViJc+YxfuXrwRvvOiTR7k5rru3gAHh+8OWi+O0q7n2OAJb2Lv//87BvZSO3J+y fnMFkx+3RZpVkgzq/Nnn8qy/+9METyE= 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-328-L6fMGQ3FMWeEwM0TEs7mDw-1; Fri, 05 Mar 2021 12:32:09 -0500 X-MC-Unique: L6fMGQ3FMWeEwM0TEs7mDw-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id EDDD6108BD0A for ; Fri, 5 Mar 2021 17:32:08 +0000 (UTC) Received: from gerbillo.redhat.com (ovpn-114-96.ams2.redhat.com [10.36.114.96]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4CE705D746 for ; Fri, 5 Mar 2021 17:32:08 +0000 (UTC) From: Paolo Abeni To: mptcp@lists.01.org Date: Fri, 5 Mar 2021 18:31:57 +0100 Message-Id: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 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: EMFNIUPAIQ2FKK35EPTINCCCTOD63WZU X-Message-ID-Hash: EMFNIUPAIQ2FKK35EPTINCCCTOD63WZU 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 v2 mptcp-next 0/3] mptcp: use whitlist for sockopt List-Id: Discussions regarding MPTCP upstreaming Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: This is almost the first non RFC istallment of the patch series trying to addressing issues/170. Changes from V1: - none, just repost to hopefully not confuse patchwork (and surely spam you more, sorry) Changes from RFC v2: - move sockopt related helper in a new file - rebased on top of the above Paolo Abeni (3): mptcp: move sockopt function into a new file mptcp: only admit explicitly supported sockopt mptcp: revert "mptcp: provide subflow aware release function" net/mptcp/Makefile | 2 +- net/mptcp/protocol.c | 165 +------------------- net/mptcp/protocol.h | 5 + net/mptcp/sockopt.c | 351 +++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 359 insertions(+), 164 deletions(-) create mode 100644 net/mptcp/sockopt.c