Commit 925bba2
tcp: Remove CMSG magic numbers for tcp_recvmsg().
At present, tcp_recvmsg() uses flags to track if any CMSGs are pending
and what those CMSGs are. These flags are currently magic numbers,
used only within tcp_recvmsg().
To prepare for receive timestamp support in tcp receive zerocopy,
gently refactor these magic numbers into enums.
Signed-off-by: Arjun Roy <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>1 parent 5225d5f commit 925bba2
1 file changed
+10
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
283 | 289 | | |
284 | 290 | | |
285 | 291 | | |
| |||
2272 | 2278 | | |
2273 | 2279 | | |
2274 | 2280 | | |
2275 | | - | |
| 2281 | + | |
2276 | 2282 | | |
2277 | 2283 | | |
2278 | 2284 | | |
| |||
2453 | 2459 | | |
2454 | 2460 | | |
2455 | 2461 | | |
2456 | | - | |
| 2462 | + | |
2457 | 2463 | | |
2458 | 2464 | | |
2459 | 2465 | | |
| |||
2513 | 2519 | | |
2514 | 2520 | | |
2515 | 2521 | | |
2516 | | - | |
| 2522 | + | |
2517 | 2523 | | |
2518 | | - | |
| 2524 | + | |
2519 | 2525 | | |
2520 | 2526 | | |
2521 | 2527 | | |
| |||
0 commit comments