summaryrefslogtreecommitdiff
path: root/scripts/tracing
diff options
context:
space:
mode:
authorDimitri Daskalakis <dimitri.daskalakis1@gmail.com>2026-02-25 01:46:58 +0300
committerJakub Kicinski <kuba@kernel.org>2026-02-26 06:42:02 +0300
commitb0249c0d41b306ddd79de58ca7fea543ab5e7a2e (patch)
tree61e9815557564e17a6e1af4df2a5ac8a033753ef /scripts/tracing
parent2cd63825c7c6105bc298474fbb073d25f48114cf (diff)
downloadlinux-b0249c0d41b306ddd79de58ca7fea543ab5e7a2e.tar.xz
selftests: net: py: Add rand_ports helper method
Certain tests need a unique set of ports. Successive calls to the existing rand_port method may return a duplicate port, resulting in test flakiness. The new helper keeps sockets open while building a list of ephemeral ports, thus the kernel enforces their uniqueness. Signed-off-by: Dimitri Daskalakis <dimitri.daskalakis1@gmail.com> Link: https://patch.msgid.link/20260224224659.1507082-2-dimitri.daskalakis1@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/tracing')
0 files changed, 0 insertions, 0 deletions