In order to improve readability, use switch statements to
differentiate between the different ECN signallings.
Also, access the ACE field by bit-shifting instead checking
each flag individually.
No change in behaviour.
Differential D43560 Authored by rscheff on Jan 23 2024, 2:49 PM.
Details Summary In order to improve readability, use switch statements to Also, access the ACE field by bit-shifting instead checking No change in behaviour.
Diff Detail
Event TimelineHerald added a reviewer: transport. · View Herald TranscriptJan 23 2024, 2:49 PM2024-01-23 14:49:26 (UTC+0) Harbormaster completed remote builds in B55569: Diff 133197.Jan 23 2024, 2:49 PM2024-01-23 14:49:30 (UTC+0) Comment Actions P.S. There are so many sysctl toggles that ask for SYSCTL_INT_MINMAX() macro, to avoid coding out yet another value checking function but to block user from entering invalid value.
Harbormaster completed remote builds in B55575: Diff 133228.Jan 23 2024, 7:18 PM2024-01-23 19:18:00 (UTC+0)
rscheff marked an inline comment as done. Comment Actions
Harbormaster completed remote builds in B55594: Diff 133284.Jan 24 2024, 4:26 PM2024-01-24 16:26:34 (UTC+0) This revision is now accepted and ready to land.Jan 25 2024, 8:28 PM2024-01-25 20:28:38 (UTC+0) Closed by commit rGfc262fd3dc0a: tcp: AccECN access ACE field by shifting bits (authored by rscheff). · Explain WhyJan 25 2024, 11:19 PM2024-01-25 23:19:03 (UTC+0) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 133228 sys/netinet/tcp_ecn.h
sys/netinet/tcp_ecn.c
|
I love enums.