Commit ca6462b
comms/uniflow/benchmarks: say what --tcp-iface does, and does not, do (#3900)
Summary:
Pull Request resolved: #3900
Three TCP flags overlap enough to be mistaken for one another, and the one
easiest to misread had no comment at all:
- `--tcp-iface` selects the local address to bind and advertise. It does not
choose the egress NIC -- routing does. On a host where several NICs share a
route, traffic can leave via one device no matter what this names.
- `--tcp-bind-dev` is a bool, not a device name. It promotes whatever
`--tcp-iface` already names into an `SO_BINDTODEVICE` pin.
- `--tcp-bind-devs` is the multi-device list, and wins over `--tcp-bind-dev`
with no warning when both are passed.
The help text called `--tcp-iface` the "front-end interface for the TCP
transport", which reads like it picks the NIC.
This documents the address-vs-device split on the field and in `--help`, and
records on `tcpBindDevList` -- where the precedence is implemented -- that
`--tcp-iface` keeps selecting the source address when striping, so it wants to
name one of the bound devices. Pointing it at an unbound NIC advertises an
address on a device carrying no lanes: legal, and confusing.
Nothing is added for the parts already covered -- the `--tcp-bind-dev` field
comment already explains the routing trap, and the `--tcp-bind-devs` help
already covers `i%count`, one listener per device, and the peer-agreement
constraints. Restating those would only create places to drift.
Comments and help text only; no behaviour change.
Differential Revision: D1176405571 parent 9fdeb7e commit ca6462b
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
66 | 69 | | |
67 | 70 | | |
68 | 71 | | |
| |||
96 | 99 | | |
97 | 100 | | |
98 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
99 | 106 | | |
100 | 107 | | |
101 | 108 | | |
| |||
175 | 182 | | |
176 | 183 | | |
177 | 184 | | |
178 | | - | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
179 | 188 | | |
180 | 189 | | |
181 | 190 | | |
| |||
0 commit comments