Page MenuHomeFreeBSD

tcp: micro-optimize SYN-cookie expansion
ClosedPublic

Authored by tuexen on Sat, Aug 30, 10:32 PM.
Tags
None
Referenced Files
F128643536: D52296.id161342.diff
Fri, Sep 12, 10:28 PM
Unknown Object (File)
Fri, Sep 12, 2:16 AM
Unknown Object (File)
Thu, Sep 4, 8:20 AM
Unknown Object (File)
Tue, Sep 2, 4:25 PM
Unknown Object (File)
Tue, Sep 2, 3:36 PM
Unknown Object (File)
Tue, Sep 2, 1:13 PM
Unknown Object (File)
Mon, Sep 1, 10:24 PM
Unknown Object (File)
Mon, Sep 1, 10:28 AM

Details

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

This revision is now accepted and ready to land.Mon, Sep 1, 6:42 AM
sys/netinet/tcp_syncache.c
2327

I'd suggest to make it u_int. Negative right operand of << is undefined behavior. I know we don't got into negative here, but using unsigned operand would make it tidier.

Use u_int instead of int as the type for wscale as suggested by glebius@.

This revision now requires review to proceed.Mon, Sep 1, 8:45 PM
This revision is now accepted and ready to land.Mon, Sep 1, 10:13 PM
This revision was automatically updated to reflect the committed changes.