HomeFreeBSD

tcp: AccECN access ACE field by shifting bits

Description

tcp: AccECN access ACE field by shifting bits

Shifting bits is quicker than checking header flag bits
one by one. Also improve readability by the use of switch
statements.

No change in behaviour.

Reviewed By: glebius, tuexen, transport
Sponsored by: NetApp, Inc.
Differential Revision: https://reviews.freebsd.org/D43560

Details

Provenance
rscheffAuthored on Jan 25 2024, 10:21 PM
Reviewer
transport
Differential Revision
D43560: tcp: improve tcp_ecn by using switch statements and bit-shifting
Parents
rG0932fb565a08: tcp: fix TCPSTAT accounting for SACK
Branches
Unknown
Tags
Unknown