]> git.dujemihanovic.xyz Git - linux.git/commit
selftests: mptcp: clearly declare global ns vars
authorMatthieu Baerts <matthieu.baerts@tessares.net>
Wed, 30 Nov 2022 14:06:26 +0000 (15:06 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 2 Dec 2022 04:06:06 +0000 (20:06 -0800)
commitde2392028a19e6841cd0ef14b9c832a7a2bc3a69
tree71f972c8482ce294e0a75f6ba29abe3d38e27e9a
parent787eb1e4df93f469e932ef686dd9dc767a9a2392
selftests: mptcp: clearly declare global ns vars

It is clearer to declare these global variables at the beginning of the
file as it is done in other MPTCP selftests rather than in functions in
the middle of the script.

So for uniformity reason, we can do the same here in mptcp_sockopt.sh.

Suggested-by: Geliang Tang <geliang.tang@suse.com>
Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/mptcp/mptcp_sockopt.sh