From patchwork Wed Jun 12 14:41:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geliang Tang X-Patchwork-Id: 13695128 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 426F917DE39; Wed, 12 Jun 2024 14:41:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718203276; cv=none; b=OpH+XBJVBF6qqgRJr4GUt8d2kDwHDgQDJqHuO9PZGfUXhrqqqbuQ4ZW6dnZScIGYbQcBNvPBIAIyh/16cQ5eL9rIrIX+hrWtpX9xZTMdY50fijdMgGPZPjxOInDggiddXur0oQDfsatCRkMPu6+lMzZ1SjAYZiIJbDfS4XFCgqY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718203276; c=relaxed/simple; bh=NUaYbNltb6RDzO1opIZ+dAvvrh92tjYiV8X2KV18uKk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kGMVElnZ1WNSHtLqmT4+MDWhVnSDCK/2mRWvcfRHw/7XBwFNzk6IMVAlTsB6DjH++VEXz6Sw4TaJfXwjPGq4efzFjMVkaNiH6QBKkDps1pNCIpWNQTTab3SaLJ+9+bxNhIbFlMroqod0GNxzfc185y7Uj+B/RHKJjY2hpYEpCbE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=rALHJXwU; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="rALHJXwU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 39787C116B1; Wed, 12 Jun 2024 14:41:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718203275; bh=NUaYbNltb6RDzO1opIZ+dAvvrh92tjYiV8X2KV18uKk=; h=From:To:Cc:Subject:Date:From; b=rALHJXwUxkHV0OxeZsvl+IG22aGM+/vYcvoMw9hx5XV+Z524XNZQgFR10OhAnxnuk AyGH+ihGgC0Bsfn3Ic+uHXqGr+p0fxy7CeBOrHZ5loohNEeedAvOxvMGdw83mYB91g NF3w2luEVJYLDQEwh67N2hsblBjDu2VKL5x7ikS8UqaqawNgMid3+ZkpzHGJdTpwzb GhTbvEKBqwS0dQp+tvgYDRqzePQFtNWQMMUfuL3ctebpfxOui+GSmwDkck6R1j7vd/ QaQcVLrfsQie55LrtSsFgJ7PT7iwtMf7pAf65y1l/fILlj13UuHRBgf0RHQDmBbZ1h H0ZA98hnxE7Ag== From: Geliang Tang To: Andrii Nakryiko , Eduard Zingerman , Mykola Lysenko , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Shuah Khan Cc: Geliang Tang , bpf@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH bpf-next v2 0/4] use network helpers, part 7 Date: Wed, 12 Jun 2024 22:41:02 +0800 Message-ID: X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Geliang Tang v2: - update patch 2, extract a new helper start_client. - drop patch 3, keep must_fail in network_helper_opts. Drop type and noconnect from network_helper_opts. And use start_server_str in mptcp and test_tcp_check_syncookie_user. Patches 1-2 address Martin's comments in the previous series. Geliang Tang (4): selftests/bpf: Drop type from network_helper_opts selftests/bpf: Drop noconnect from network_helper_opts selftests/bpf: Use start_server_str in mptcp selftests/bpf: Use start_server_str in test_tcp_check_syncookie_user tools/testing/selftests/bpf/network_helpers.c | 45 +++++++++++++++---- tools/testing/selftests/bpf/network_helpers.h | 7 +-- .../selftests/bpf/prog_tests/bpf_tcp_ca.c | 2 +- .../selftests/bpf/prog_tests/cgroup_v1v2.c | 4 +- .../bpf/prog_tests/ip_check_defrag.c | 7 +-- .../testing/selftests/bpf/prog_tests/mptcp.c | 7 +-- .../bpf/test_tcp_check_syncookie_user.c | 29 ++---------- 7 files changed, 49 insertions(+), 52 deletions(-)