pr_attach is only called on a socket so with so->so_listen != NULL via sonewconn. However, sonewconn is not called from the TCP code. The listening sockets are handled in tcp_syncache.c without using sonewconn. Therefore, the code removed is never executed.
No functional change intended.
Details
Details
- Reviewers
rrs rscheff peter.lei_ieee.org lstewart - Group Reviewers
transport - Commits
- rGe7381521aa75: tcp: remove unused code in tcp_usr_attach
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
I would maybe call the hint cppc_notify with the sense being that "1" enables it and "0" disables notifications (we try to avoid "negative" hints/tunables). You would then just want to set the default value to 1 and change the last test to cppcval != 0. I would also perhaps rename cppcval to cppc_notify as well.