Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net-test: packetdrill: update tcp/epoll tests to latest kernel behavior #76

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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 <[email protected]>
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