Page MenuHomeFreeBSD

LRO code should deal with all 12 TCP header flags
ClosedPublic

Authored by rscheff on Feb 1 2022, 2:44 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 14, 9:00 PM
Unknown Object (File)
Dec 26 2023, 10:52 AM
Unknown Object (File)
Dec 20 2023, 5:57 AM
Unknown Object (File)
Dec 15 2023, 10:26 PM
Unknown Object (File)
Oct 18 2023, 9:42 PM
Unknown Object (File)
Sep 26 2023, 10:27 AM
Unknown Object (File)
Sep 8 2023, 2:59 AM
Unknown Object (File)
Aug 4 2023, 10:26 PM
Subscribers

Details

Summary

RFC793 has 4 reserved flag bits for future use. One of those
bits used to be assigned to ECN Nonce (now historic), and
may be reused for AccurateECN.

This patch is to include these bits in the LRO code to ease
the extensibility if/when these bits are used.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sys/netinet/tcp_lro.h
151

Maybe you should add a "reserved : 2", so that the bitfields fill the 16- bits available.

  • add comments and reserve remainder of bitfield
sys/netinet/tcp_lro.c
924

Maybe a macro to do exactly this would be at its place?

#define TCP_GET_FLAGS(th) (((th)->th_x2 << 8) | ((th)->th_flags))

--HPS

sys/netinet/tcp_lro.c
924

A good idea. But I would do that as a separate Diff, as there are (already) a couple places scattered across the base stack, where this would come in handy...

This looks good but I want to pull it down and see if it will compile ;)

This revision is now accepted and ready to land.Feb 1 2022, 3:38 PM