From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qv2-f12.google.com (mail-qv2-f12.google.com [74.125.230.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 77F003BF677 for ; Fri, 18 Sep 2026 14:46:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.230.140 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789742822; cv=none; b=jApIFtly6HQJKXNuRoeb4Ng4eM8V37/3IMGZ3G6zlclQkDhHELhktIkeB263R+V7Z3d57zXm6ajxZe626rwHbH3y6b8wskDJwPiXjzxyN9BrwYdGKy0jDewSElqgSTubsWYK2paKgdVOpX2IJfZj85eGiI9rQ4gCS+ePi2x0vYA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789742822; c=relaxed/simple; bh=jViD/rOj158IIVRyenKEzNXvlTOBl+PLeh6KrO3NBhc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uVBpqJMHuHluKuFSEjFI9y9AJFBZtWclVrIgqM4TQQymAgQFKkOgRpdvxsOYLVvPrgy2o9V2EKh06OScZZs5mN8VV8kXpxc5p8Hirrtyz22y03Nfkk0HUrtQXFE0OAbIsqGhKTtK1U/2xowEX4rFSqEA3M6y9R9v9KaJdnApu0s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=g1/SQG+3; arc=none smtp.client-ip=74.125.230.140 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="g1/SQG+3" Received: by mail-qv2-f12.google.com with SMTP id 6a1803df08f44-90cdfc9b6e3so9293726d6.1 for ; Fri, 18 Sep 2026 07:46:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1789742818; x=1790347618; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=RoRhENqwgBZMFIya0BCuX69IQkNFf1AmBE46Ti9pPss=; b=g1/SQG+3UwbCkccq748a/9012V1piM4hOiCcqrrGU5F+BJJzNm44wAbzVzpNZArecD G6RslO9pef4STQz8BHx/nMycrC3262evCwvrh/vMZe6y4DZx+K6I8GHn+8qgurogVW91 ni0TwbuDwY1Yyr2TLShjAOnEER3+OojEF618x9lv2kkii8e1s2pemxOQLMZIuB57x+9H m69G9KIWZKJjkWzURxhOfGjJ0vT/s/AdNg7fNcSI45l0+SljYgaqSeueTJyGX6uSquCM mliRcM0HwIh6p7eeaonnGrCNlkK0ux5WlLHMsH/9mHuaFhTUdzdzL8AqYr4Fw+zFwWKT uQiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1789742818; x=1790347618; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=RoRhENqwgBZMFIya0BCuX69IQkNFf1AmBE46Ti9pPss=; b=gpXTemWvKZDh1Ep+GXeOFJMAqHM66hwn4JFR089SU69URd3rgo1qVFRaKF7VPzweh7 Kqv7r0JL9AbyPTtIeA0Rx37ZAQugDjx+B3pwzfLEghiSVPO4Llo1GrfPNQOpUJkYeacL MLm17WVbC+ydlYXRL56alOr9q64g+qQA/MagSoaT6fTXS6PQaU/Tb/OTRtm9Q8d4aeEf 85AShMFxRXY1oBunBCnTQRIKKiBRhuX5eu2TwShEHZj1iH5DUbquGwXPyKkWbti3u2kw ZRlP0/Py2KYnHGRysqjXcD1QcPNpcTMe99ZT1RKQTpXycpIw9bgOxi1DS8uvA5Pb1//y LUaA== X-Forwarded-Encrypted: i=1; AKwUvBzqOe8tJlONDaE+B/HSIRupuD1c4UcNQBN6nPzrx1PegTF/YOJzupp6faVeIGprfovHGPz9dQEMxdgFKXorPM8=@vger.kernel.org X-Gm-Message-State: AFuF++mvJ7jjH++IThpJiW3URGse5aufTtDbq80Fr3bPoB4bHnvILDZL rYDRH5cSnmCvuFYzlnQjpDc2CKg7sJBkFaaNY7TJPupsO/FNhMrqx7yZAPq/nuqv X-Gm-Gg: AYBFou2SvOC6hY5pBjGLUglpzuvzzcp1lXVfutd7fTrhy4LNKISXCnDHYZk2gOV+ubr E/+zXEh9IlMcHYHONR1MwZt1GEv0p+zqSz+EIVGYp7rz5Q+Lgz4xvo0yiZqwZXPcH+YVnABMimw nCjT9npI9+KDS+t1tLNm5SfElZo3qJssH9nJDnQksdk131IdmBIrw0+42Lhb+s6THPt+bjQqe+S lp+uQOjbYY/dyumtgtMRiolcmRCwMt1EcH3g1LpHQoycpVP2KOtPcUoyUroCn+9ugCPnBKlJj4D yO6yvClD2ACUm3Kt/iLryLxsIPoHC0iWZpwMBHJEvAVMiFipNQcPawOTCFZc2qXBH+p+hH1qm7v 9TnnZo1m6PrV4zKbvLvYX8jcDvwSNqt7ZJWsEXzJkj1nsb6Mjn5mWy4vzoEwVFFPU6iMvoPjwXp nVIFbGr/JvzYLxiHXKhrqbqWwOC3VfL/+RHx+JFqVB5DXjYjquAQ+AqR0DsOhJt2xNMw== X-Received: by 2002:a05:620a:4009:b0:939:a9d4:50b7 with SMTP id af79cd13be357-93bdc6a958dmr403161985a.26.1789742818019; Fri, 18 Sep 2026 07:46:58 -0700 (PDT) Received: from houminxi ([61.170.217.176]) by smtp.gmail.com with ESMTPSA id af79cd13be357-93be0ed50b2sm160197485a.32.2026.09.18.07.46.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Sep 2026 07:46:56 -0700 (PDT) From: Minxi Hou To: netdev@vger.kernel.org Cc: Aaron Conole , Eelco Chaudron , Ilya Maximets , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Shuah Khan , dev@openvswitch.org, linux-kselftest@vger.kernel.org, Minxi Hou Subject: [PATCH net-next v5 0/2] selftests: openvswitch: SCTP flow key coverage (IPv6 + NAT) Date: Fri, 18 Sep 2026 10:46:45 -0400 Message-ID: <20260918144647.2024095-1-houminxi@gmail.com> X-Mailer: git-send-email 2.55.0 Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The merged IPv4 SCTP flow-key test covers only IPv4 and only the plain forwarding path. This series adds SCTP over IPv6, and SCTP across conntrack NAT (ovs_nat_update_key() rewrites L4 ports on the recirculated skb). Patch 2 translates the destination port so that SCTP branch is load-bearing; address-only NAT cannot tell a working branch from a missing one. Full OVS selftest suite is 19/19 OK on a freshly built kernel (sctp_connect_v4, sctp_connect_v6, sctp_nat_connect_v4 included). v5 restores the series title and patch 2 subject to the v1/v2 names. I renamed them in v3 and v4; that was a mistake. v1: https://lore.kernel.org/netdev/20260823020942.3101898-1-houminxi@gmail.com/ v2: https://lore.kernel.org/netdev/20260902125133.1828572-1-houminxi@gmail.com/ v3: https://lore.kernel.org/netdev/20260906165251.1176875-1-houminxi@gmail.com/ v4: https://lore.kernel.org/netdev/20260909122521.2687193-1-houminxi@gmail.com/ v2: - rebase after net-next reopened (v1 was deferred while the tree was closed). no code change. v3: - usage() tab alignment - wait for the payload with ovs_wait instead of a bare grep - CONFIG_NF_CT_PROTO_SCTP in the config fragment - probe with ct(commit,nat) so kernels without NAT skip - NAT translates the destination port (4443 -> 5555) - commit messages: drop the INIT/DATA claim; point patch 2 at ovs_nat_update_key() v4: - keyless ipv6(proto=132) install must be EINVAL 22 - wrap a few over-80 lines; checkpatch --strict clean - rebase onto 548b86839f7f v5: - TEST_LIST descriptions sit at column 48 with the rest of the file; shortened so expand -t 8 stays under 80 - skip the v6 test when socat has no WITH_IP6 - CONFIG_NF_NAT=m in the ovs fragment so the NAT test is not skipped on the reference config - CONFIG_NETFILTER_ADVANCED=y so CONFIG_NF_CT_PROTO_SCTP is visible (it depends on ADVANCED; without it the symbol is dropped and the NAT test skips) Signed-off-by: Minxi Hou Minxi Hou (2): selftests/net/openvswitch: add SCTP flow key test over IPv6 selftests/net/openvswitch: add SCTP flow key test across conntrack NAT .../testing/selftests/net/openvswitch/config | 3 + .../selftests/net/openvswitch/openvswitch.sh | 202 ++++++++++++++++++ 2 files changed, 205 insertions(+) base-commit: 548b86839f7fb819a4d6c83b71c73ec378d24275 -- 2.55.0