Skip to contentSkip to conversation

fixes for create_netns

PATCH Superseded Geliang Tang 3 participants 5 messages May 16, 2024

Subsystems (4)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Geliang Tang

author reviewer
#0 lore raw

v2 cover fixes for create_netns

From: Geliang Tang <[email protected]>

Since create_netns() is updated in "bpf-next add netns helpers" series, some mptcp bpf patches need to be updated.

This series epends on "bpf-next add netns helpers" series.

v2:
- drop patch 1. Now netns is deleted first before adding it in
"selftests/bpf: Export create_netns helper", no need to use SIGINT to delete it anymore.

Geliang Tang (2):
Squash to "selftests/bpf: Add mptcp subflow subtest" Squash to "selftests/bpf: Add bpf scheduler test"

 tools/testing/selftests/bpf/prog_tests/mptcp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
2.43.0
author reviewer
#1 lore raw

PATCH v2 1/2 Squash to "selftests/bpf: Add mptcp subflow subtest"

From: Geliang Tang <[email protected]>

create_netns() is updated in "bpf-next add netns helpers" series, test_subflow() needs to be updated too.

That means v3 of "selftests/bpf: new MPTCP subflow subtest" cannot be sent to bpf-next at the moment until this "bpf-next add netns helpers" series is accepted.

---
 tools/testing/selftests/bpf/prog_tests/mptcp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/bpf/prog_tests/mptcp.c +1 -1
index c7f61fd9e7a5..a4863328d2c7 100644
@@ -418,7 +418,7 @@ static void test_subflow(void)
 	if (!ASSERT_OK(err, "prog_attach"))
 		goto skel_destroy;
 
-	nstoken = create_netns();
+	nstoken = create_netns(NS_TEST);
 	if (!ASSERT_OK_PTR(nstoken, "create_netns: mptcp_subflow"))
 		goto skel_destroy;
 
Signature · 1 line
2.43.0
author reviewer
#2 lore raw

PATCH v2 2/2 Squash to "selftests/bpf: Add bpf scheduler test"

In reply to Geliang Tang

From: Geliang Tang <[email protected]>

create_netns() is updated in "bpf-next add netns helpers" series, sched_init() needs to be updated too.

---
 tools/testing/selftests/bpf/prog_tests/mptcp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/bpf/prog_tests/mptcp.c +1 -1
index a4863328d2c7..1b2ffc5211ea 100644
@@ -439,7 +439,7 @@ static struct nstoken *sched_init(char *flags, char *sched)
 {
 	struct nstoken *nstoken;
 
-	nstoken = create_netns();
+	nstoken = create_netns(NS_TEST);
 	if (!ASSERT_OK_PTR(nstoken, "create_netns"))
 		return NULL;
 
Signature · 1 line
2.43.0
#3 lore raw
In reply to Geliang Tang

Hi Geliang,

Thank you for your modifications, that's great!

Our CI did some validations and here is its report:

- KVM Validation: normal: Success! ✅
- KVM Validation: debug: Success! ✅
- KVM Validation: btf (only bpftest_all): Script error! ❓
- Task: https://github.com/multipath-tcp/mptcp_net-next/actions/runs/9105138376

Initiator: Patchew Applier
Commits: https://github.com/multipath-tcp/mptcp_net-next/commits/c39563ddfdd6
Patchwork: https://patchwork.kernel.org/project/mptcp/list/?series=853542

If there are some issues, you can reproduce them using the same environment as the one used by the CI thanks to a docker image, e.g.:

    $ cd [kernel source code]
    $ docker run -v "${PWD}:${PWD}:rw" -w "${PWD}" --privileged --rm -it \
        --pull always mptcp/mptcp-upstream-virtme-docker:latest \
        auto-normal

For more details:

https://github.com/multipath-tcp/mptcp-upstream-virtme-docker

Please note that despite all the efforts that have been already done to have a stable tests suite when executed on a public CI like here, it is possible some reported issues are not due to your modifications. Still, do not hesitate to help us improve that ;-)

Cheers,
MPTCP GH Action bot
Bot operated by Matthieu Baerts (NGI0 Core)

maintainer
#4 lore raw
In reply to Geliang Tang

Hi Geliang,

16 May 2024 03:26:28 Geliang Tang <[email protected]>:

Quoted 6 lines

From: Geliang Tang <[email protected]>

Since create_netns() is updated in "bpf-next add netns helpers" series, some mptcp bpf patches need to be updated.

This series epends on "bpf-next add netns helpers" series.

In this case, do you mind sending a v3 with the Based-on tag in the cover-letter, please? See:

  https://github.com/multipath-tcp/mptcp_net-next/wiki/CI#base-patches

So with:

Based-on: <[email protected]>

Cheers,
Matt