[PATCH bpf-next v9 2/4] selftests/bpf: Use random netns name for mptcp

Yonghong Song yonghong.song at linux.dev
Thu Aug 3 23:20:37 UTC 2023



On 8/3/23 6:41 AM, Geliang Tang wrote:
> Use rand() to generate a random netns name instead of using the fixed
> name "mptcp_ns" for every test.
> 
> By doing that, we can re-launch the test even if there was an issue
> removing the previous netns or if by accident, a netns with this generic
> name already existed on the system.
> 
> Note that using a different name each will also help adding more
> subtests in future commits.
> 
> Signed-off-by: Geliang Tang <geliang.tang at suse.com>
> Reviewed-by: Matthieu Baerts <matthieu.baerts at tessares.net>

Acked-by: Yonghong Song <yonghong.song at linux.dev>



More information about the Linux-security-module-archive mailing list