Skip to contentSkip to conversation

fixes for create_netns

PATCH In review Geliang Tang 3 participants 6 messages May 16, 2024 – May 30, 2024

Subsystems (4)
lore
Share & tools
lore

Geliang Tang

author reviewer
#0 lore raw

v3 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.

Based-on: <[email protected]>

v3:
- add based-on tag.

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 v3 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 v3 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: Unstable: 1 failed test(s): selftest_simult_flows 🔴
- KVM Validation: debug: Unstable: 1 failed test(s): packetdrill_sockopts 🔴
- KVM Validation: btf (only bpftest_all): Success! ✅
- Task: https://github.com/multipath-tcp/mptcp_net-next/actions/runs/9109397952

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

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)

author reviewer
#4 lore raw
In reply to Geliang Tang

Hi Matt,

Quoted 7 lines · Geliang Tang

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.

The series "bpf-next: add netns helpers" has not been accepted yet, and I guess it will take a long time. I suggest to send v3 of "selftests/bpf: new MPTCP subflow subtest" to bpf-next first. Don't wait for the series "bpf-next: add netns helpers" anymore.

I changed this series "fixes for create_netns" from "Awaiting Upstream" to "Changes Requested" on patchwork.

Thanks,
-Geliang

Quoted 18 lines

Based-on: <[email protected]>

v3:
 - add based-on tag.

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(-)
maintainer
#5 lore raw

Hi Geliang,

Quoted 5 lines · Geliang Tang

Hi Matt,

Quoted 2 lines · Geliang Tang

From: Geliang Tang <[email protected]>

Quoted 8 lines
Quoted 5 lines

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.

The series "bpf-next: add netns helpers" has not been accepted yet, and I guess it will take a long time.

Thank you for the update!

Quoted 3 lines

I suggest to send v3 of
"selftests/bpf: new MPTCP subflow subtest" to bpf-next first. Don't wait for the series "bpf-next: add netns helpers" anymore.

This 'new MPTCP subflow subtest' series is not urgent, nor blocking
anything: I'm sure it is fine to wait. We have ~6 weeks before the future v6.10 release. Do you think the "add netns helpers" will not be accepted before?

Quoted 2 lines

I changed this series "fixes for create_netns" from "Awaiting Upstream" to "Changes Requested" on patchwork.

Thanks!

Cheers,
Matt

Quoted 23 lines

Thanks,
-Geliang

Quoted 18 lines

Based-on: <[email protected]>

v3:
 - add based-on tag.

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(-)

Cheers,
Matt

Signature · 1 line
Sponsored by the NGI0 Core fund.