]> www.infradead.org Git - users/dwmw2/linux.git/commit
selftests/net: expand cmsg_ip with MSG_MORE
authorWillem de Bruijn <willemb@google.com>
Fri, 7 Mar 2025 03:34:10 +0000 (22:34 -0500)
committerJakub Kicinski <kuba@kernel.org>
Mon, 10 Mar 2025 20:13:04 +0000 (13:13 -0700)
commit0922cb68edfde9e3920bb3aedea203d333af9f10
tree362bd016b4f2022bf5250ea90e1687a9188ce536
parenta18dfa9925b9ef6107ea3aa5814ca3c704d34a8a
selftests/net: expand cmsg_ip with MSG_MORE

UDP send with MSG_MORE takes a slightly different path than the
lockless fast path.

For completeness, add coverage to this case too.

Pass MSG_MORE on the initial sendmsg, then follow up with a zero byte
write to unplug the cork.

Unrelated: also add two missing endlines in usage().

Signed-off-by: Willem de Bruijn <willemb@google.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20250307033620.411611-4-willemdebruijn.kernel@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/cmsg_ip.sh
tools/testing/selftests/net/cmsg_sender.c