Closed osctobe closed 1 year ago
criu/page-xfer.c:163:28: error: 'SOL_TCP' undeclared (first use in this function); did you mean 'SOL_TIPC'?
163 | if (setsockopt(sk, SOL_TCP, TCP_CORK, &val, sizeof(val)))
| ^~~
| SOL_TIPC
criu/page-xfer.c:163:28: note: each undeclared identifier is reported only once for each function it appears in
criu/page-xfer.c:163:37: error: 'TCP_CORK' undeclared (first use in this function)
163 | if (setsockopt(sk, SOL_TCP, TCP_CORK, &val, sizeof(val)))
| ^~~~
criu/page-xfer.c: In function 'tcp_nodelay':
criu/page-xfer.c:170:28: error: 'SOL_TCP' undeclared (first use in this function); did you mean 'SOL_TIPC'?
170 | if (setsockopt(sk, SOL_TCP, TCP_NODELAY, &val, sizeof(val)))
| ^~~
| SOL_TIPC
criu/page-xfer.c:170:37: error: 'TCP_NODELAY' undeclared (first use in this function); did you mean 'O_NDELAY'?
170 | if (setsockopt(sk, SOL_TCP, TCP_NODELAY, &val, sizeof(val)))
| ^~~
| O_NDELAY
While at it, fix and demote error logs as they are not fatal and do not restore the sockopt values.
I don't see this part. Do we really need this pr?
While at it, fix and demote error logs as they are not fatal and do not restore the sockopt values. I don't see this part. Do we really need this pr?
Fixed the description. PTAL
Patch coverage: 75.00%
and project coverage change: +0.28%
:tada:
Comparison is base (
988a5f4
) 70.36% compared to head (46cdba4
) 70.64%.:exclamation: Current head 46cdba4 differs from pull request most recent head 4a06322. Consider uploading reports for the commit 4a06322 to get more accurate results
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Move tcp_cork() and tcp_nodelay() to the only user: page-xfer.c. While at it, fix error messages (as they do not refer to restoring the sockopt values) and demote them as they are not fatal to the page transfer.