Transmit segment offloading depends on transmit checksum offloading. Enforce that constraint.
This also fixes a bug, since if_hwassist bits are from the CSUM_ space, not from the IFCAP_ space.
This fixes PR 290773.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Enabling TSO without TXCSUM is not good and should not be possible.
I added an inline comment to a line with an if. Other than that, there is nothing I would change.
| sys/dev/virtio/network/if_vtnet.c | ||
|---|---|---|
| 1372 | Why do you explicitly check for != 0 here and below? | |
| sys/dev/virtio/network/if_vtnet.c | ||
|---|---|---|
| 1372 |
The newer version would be != 0, but this files uses it without a lot. So stay consistent. Also combine the tests, since this is shorter. | |