Re: [PATCH net v3 3/6] selftests: net: run reuseport tests in netns to avoid port conflicts

From: Jakub Kicinski

Date: Fri Mar 06 2026 - 22:26:16 EST


On Fri, 6 Mar 2026 00:01:24 +0000 Aleksei Oladko wrote:
> Some net kselftests use fixed ports which overlap with process-exporter
> service already running on the host. When such a conflict happens,
> the test fail with:
>
> failed to bind receive socket: Address already in use
>
> Instead of changing port numbers, run the affected tests in isolated
> network namespace to avoid conflicts with running daemons.

Please change the tests accordingly instead of wrapping them all
in a script. AFAIU it's a simple matter of adding unshare() calls?