Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Differential] D7415: tcp/lro: If timestamps mismatch or it's a FIN, force flush.

1 view
Skip to first unread message

sepherosa_gmail.com (Sepherosa Ziehau)

unread,
Aug 4, 2016, 4:51:19 AM8/4/16
to
sepherosa_gmail.com created this revision.
sepherosa_gmail.com added reviewers: rrs, gallatin, hselasky, np, glebius.
sepherosa_gmail.com added a subscriber: freebsd-net-list.
Herald added a reviewer: transport.

REVISION SUMMARY
This keeps the segments/ACK/FIN delivery order.

Before this patch, it was observed: if A sent FIN immediately after
an ACK, B would deliver FIN first to the TCP stack, then the ACK.
This out-of-order delivery causes one unnecessary ACK sent from B.

Obtained from: gallatin, rrs

REVISION DETAIL
https://reviews.freebsd.org/D7415

AFFECTED FILES
sys/netinet/tcp_lro.c

EMAIL PREFERENCES
https://reviews.freebsd.org/settings/panel/emailpreferences/

To: sepherosa_gmail.com, #transport, rrs, gallatin, hselasky, np, glebius
Cc: freebsd-net-list

D7415.19031.patch

sepherosa_gmail.com (Sepherosa Ziehau)

unread,
Aug 4, 2016, 4:54:50 AM8/4/16
to
sepherosa_gmail.com added reviewers: hiren, bz.

REVISION DETAIL
https://reviews.freebsd.org/D7415

EMAIL PREFERENCES
https://reviews.freebsd.org/settings/panel/emailpreferences/

To: sepherosa_gmail.com, rrs, gallatin, hselasky, np, glebius, #transport, hiren, bz
Cc: freebsd-net-list
_______________________________________________
freeb...@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net...@freebsd.org"

hselasky (Hans Petter Selasky)

unread,
Aug 4, 2016, 5:07:31 AM8/4/16
to
hselasky added inline comments.

INLINE COMMENTS

> tcp_lro.c:852
> }
>
> /* Try to find an empty slot. */

Should there be added:

if (force_flush)

return (TCP_LRO_CANNOT);

If no match is found in the list?

sepherosa_gmail.com (Sepherosa Ziehau)

unread,
Aug 4, 2016, 5:19:46 AM8/4/16
to
sepherosa_gmail.com added inline comments.

INLINE COMMENTS

> hselasky wrote in tcp_lro.c:852
> Should there be added:
>
> if (force_flush)
>
> return (TCP_LRO_CANNOT);
>
> If no match is found in the list?

Ah, yeah, it was in the original patch from rrs, got lost by me :P

sepherosa_gmail.com (Sepherosa Ziehau)

unread,
Aug 4, 2016, 5:26:32 AM8/4/16
to
sepherosa_gmail.com updated this revision to Diff 19032.
sepherosa_gmail.com added a comment.


Don't create entry for segments cant be further aggregated/delayed. Noticed-by: hps

CHANGES SINCE LAST UPDATE
https://reviews.freebsd.org/D7415?vs=19031&id=19032

REVISION DETAIL
https://reviews.freebsd.org/D7415

AFFECTED FILES
sys/netinet/tcp_lro.c

EMAIL PREFERENCES
https://reviews.freebsd.org/settings/panel/emailpreferences/

To: sepherosa_gmail.com, rrs, gallatin, hselasky, np, glebius, hiren, bz, #transport
Cc: freebsd-net-list

D7415.19032.patch

hselasky (Hans Petter Selasky)

unread,
Aug 4, 2016, 5:32:40 AM8/4/16
to
hselasky accepted this revision.
hselasky added a comment.


Looks good to me.

--HPS

REVISION DETAIL
https://reviews.freebsd.org/D7415

EMAIL PREFERENCES
https://reviews.freebsd.org/settings/panel/emailpreferences/

To: sepherosa_gmail.com, rrs, gallatin, np, glebius, hiren, bz, #transport, hselasky

gallatin (Andrew Gallatin)

unread,
Aug 4, 2016, 8:20:59 AM8/4/16
to
gallatin accepted this revision.
To: sepherosa_gmail.com, rrs, np, glebius, hiren, bz, #transport, hselasky, gallatin

Phabricator

unread,
Aug 5, 2016, 5:08:36 AM8/5/16
to
This revision was automatically updated to reflect the committed changes.
Closed by commit rS303766: tcp/lro: If timestamps mismatch or it's a FIN, force flush. (authored by sephe).

CHANGED PRIOR TO COMMIT
https://reviews.freebsd.org/D7415?vs=19032&id=19063#toc

REPOSITORY
rS FreeBSD src repository

CHANGES SINCE LAST UPDATE
https://reviews.freebsd.org/D7415?vs=19032&id=19063

REVISION DETAIL
https://reviews.freebsd.org/D7415

AFFECTED FILES
head/sys/netinet/tcp_lro.c

D7415.19063.patch
0 new messages