Commit ff9e3c4
committed
feat(rss): port IP_BIND_ADDRESS_NO_PORT (bind-then-connect) from upstream cb9b4d4 to FreeBSD 15.0
Defer source port allocation in in_pcbbind/in6_pcbbind when port==0 so
connect() can pick an RSS-aware source port via the R-A
INPLOOKUP_LPORT_RSS_CHECK path. v6 connect outer condition is relaxed
under FSTACK to (in6p_laddr unspec || inp_lport==0) so bind-then-connect
actually enters the RSS branch; the inner in6p_laddr overwrite is now
guarded by IN6_IS_ADDR_UNSPECIFIED to preserve a user-bound v6 address.
All hunks gated by #ifdef/#ifndef FSTACK; FSTACK off retains native
FreeBSD 15.0 semantics (REUSEPORT_LB MPASS at L740 unaffected).
Baseline 13.0 contains none of these three hunks; this is a fresh
addition rather than a missed-port migration.1 parent 35aa958 commit ff9e3c4
2 files changed
Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
736 | 736 | | |
737 | 737 | | |
738 | 738 | | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
739 | 742 | | |
740 | 743 | | |
741 | 744 | | |
742 | 745 | | |
743 | 746 | | |
744 | 747 | | |
745 | 748 | | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
746 | 752 | | |
747 | 753 | | |
748 | 754 | | |
| |||
1272 | 1278 | | |
1273 | 1279 | | |
1274 | 1280 | | |
| 1281 | + | |
1275 | 1282 | | |
1276 | 1283 | | |
1277 | 1284 | | |
1278 | 1285 | | |
1279 | 1286 | | |
| 1287 | + | |
1280 | 1288 | | |
1281 | 1289 | | |
1282 | 1290 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
| 355 | + | |
355 | 356 | | |
356 | 357 | | |
357 | 358 | | |
358 | 359 | | |
359 | 360 | | |
360 | 361 | | |
| 362 | + | |
361 | 363 | | |
362 | 364 | | |
363 | 365 | | |
| |||
512 | 514 | | |
513 | 515 | | |
514 | 516 | | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
515 | 520 | | |
| 521 | + | |
516 | 522 | | |
517 | 523 | | |
518 | 524 | | |
| |||
525 | 531 | | |
526 | 532 | | |
527 | 533 | | |
528 | | - | |
| 534 | + | |
| 535 | + | |
529 | 536 | | |
530 | 537 | | |
531 | 538 | | |
| |||
0 commit comments