Details
Details
- Reviewers
rscheff tuexen - Group Reviewers
transport - Commits
- rG597798a0e5ff: tcp: use sparse initializer for host cache metrics
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
| sys/netinet/tcp_subr.c | ||
|---|---|---|
| 2518 | This is declaring a variable in the middle of the block. Why don't you perform this initialization at the beginning of the if block (where the declaration was) and only update hc_ssthresh here to ssthresh? | |
| sys/netinet/tcp_subr.c | ||
|---|---|---|
| 2518 | This will make the compiler first write a zero to hc_ssthresh, then a new value. I can actually go without a variable at all, make entire declaration an argument to tcp_hc_update(). | |
| sys/netinet/tcp_subr.c | ||
|---|---|---|
| 2518 | Then I would prefer going without a variable... | |