From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 89FE01FDD for ; Wed, 24 May 2023 13:50:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1684936219; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VBSSjDz/lj+Kage0DW54kB6GSFTVPu46PFKADv5CoGw=; b=cXqASHkgSw36oWrd5KTJF4hAob8YxdiEmMFKS6DYFTEv4dp46KEZMbXKUKu0MdOO5usuMX U9nM/svaraANyLECKTYnbdBJykRN19cqE8S71mfK7mYfF2Z/cnf1+RbAdK+gvbzW3q0CeL lZbr+hHOdpJQPVCMMfLs5WzFOHUJ34I= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-675-nJExkecsPRqajz8vmDuIlA-1; Wed, 24 May 2023 09:50:18 -0400 X-MC-Unique: nJExkecsPRqajz8vmDuIlA-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E27C8101A585; Wed, 24 May 2023 13:50:17 +0000 (UTC) Received: from gerbillo.redhat.com (unknown [10.39.193.138]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4CF0D7AE4; Wed, 24 May 2023 13:50:17 +0000 (UTC) From: Paolo Abeni To: mptcp@lists.linux.dev Cc: Florian Westphal Subject: [PATCH v4 mptcp-next 0/6] mptcp: add some more diag info Date: Wed, 24 May 2023 15:50:05 +0200 Message-Id: Precedence: bulk X-Mailing-List: mptcp@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true This is a follow up to the topic discussed in recent pubblic mtg. Introduces unique id for accurate subflow stats tracking and aggregate mptcp counters, plus some minimal self-tests. The tests themself do not take in account support for running on older kernel. This is on top of "mptcp: a bunch of data race fixes". There should be non trivial conflicts with: "mptcp: use get_retrans wrapper". v3 -> v4: - change binary layout for MPTCP_FULL_INFO structs (Florian) v2 -> v3: - address Matttbe comments on patch 1, 2 and 5, see the indivdual patches changelog for the details v1 -> v2: - introduce MPTCP_FULL_INFO instead of overloading a tcp_info field - add related self-tests - fix a couple of subflow_id initialization bugs Paolo Abeni (6): mptcp: add subflow unique id mptcp: introduce MPTCP_FULL_INFO getsockopt mptcp: move snd_una update earlier for fallback socket. mptcp: track some aggregate data counters. selftests: mptcp: explicitly tests aggregate counters selftests: mptcp: add MPTCP_FULL_INFO testcase include/uapi/linux/mptcp.h | 30 +++ net/mptcp/options.c | 14 +- net/mptcp/protocol.c | 24 ++- net/mptcp/protocol.h | 9 +- net/mptcp/sockopt.c | 187 ++++++++++++++++-- net/mptcp/subflow.c | 2 + .../selftests/net/mptcp/mptcp_sockopt.c | 123 +++++++++++- 7 files changed, 356 insertions(+), 33 deletions(-) -- 2.40.1