Skip to content

Conversation

@rrendec
Copy link

@rrendec rrendec commented Jul 18, 2023

The EPOLLOUT tests expect a buggy kernel behavior where EPOLLOUT is not sent in some circumstances, when only a small fragment is acknowledged. Kernel commit 4bfe744ff164 "tcp: fix potential xmit stalls caused by TCP_NOTSENT_LOWAT" changes the kernel behavior in that regard and fixes the bug.

Adapt the EPOLLOUT tests to match the new/correct kernel behavior.

The epoll_out_edge.pkt and epoll_out_edge_default_notsent_lowat.pkt tests require an additional change because the last write is a full write now. Instead of changing the write size to make it a partial write again, keep the write size unchanged and adjust the expected result of epoll_wait(), since partial writes are already tested earlier in the test flow.

The EPOLLOUT tests expect a buggy kernel behavior where EPOLLOUT is not
sent in some circumstances, when only a small fragment is acknowledged.
Kernel commit 4bfe744ff164 "tcp: fix potential xmit stalls caused by
TCP_NOTSENT_LOWAT" changes the kernel behavior in that regard and fixes
the bug.

Adapt the EPOLLOUT tests to match the new/correct kernel behavior.

The epoll_out_edge.pkt and epoll_out_edge_default_notsent_lowat.pkt
tests require an additional change because the last write is a full
write now. Instead of changing the write size to make it a partial write
again, keep the write size unchanged and adjust the expected result of
epoll_wait(), since partial writes are already tested earlier in the
test flow.

Signed-off-by: Radu Rendec <rrendec@redhat.com>
Change-Id: I7327d88fd1280f115ebf4f2a3c83ae4ff590d117
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant