diff options
| author | David Gibson <david@gibson.dropbear.id.au> | 2025-03-17 20:24:17 +1100 |
|---|---|---|
| committer | Stefano Brivio <sbrivio@redhat.com> | 2025-03-20 20:33:12 +0100 |
| commit | 9866d146e654975dd7f5fd3f1294d5fc4628cef3 (patch) | |
| tree | d2f9f9030aaefeefe844f88cdd74715d74fc0dc6 /contrib | |
| parent | a41d6d125eca5ac8c54bed8157098be141557b03 (diff) | |
| download | passt-9866d146e654975dd7f5fd3f1294d5fc4628cef3.tar passt-9866d146e654975dd7f5fd3f1294d5fc4628cef3.tar.gz passt-9866d146e654975dd7f5fd3f1294d5fc4628cef3.tar.bz2 passt-9866d146e654975dd7f5fd3f1294d5fc4628cef3.tar.lz passt-9866d146e654975dd7f5fd3f1294d5fc4628cef3.tar.xz passt-9866d146e654975dd7f5fd3f1294d5fc4628cef3.tar.zst passt-9866d146e654975dd7f5fd3f1294d5fc4628cef3.zip | |
tap: Clarify calculation of TAP_MSGS
The rationale behind the calculation of TAP_MSGS isn't necessarily obvious.
It's supposed to be the maximum number of packets that can fit in pkt_buf.
However, the calculation is wrong in several ways:
* It's based on ETH_ZLEN which isn't meaningful for virtual devices
* It always includes the qemu socket header which isn't used for pasta
* The size of pkt_buf isn't relevant for vhost-user
We've already made sure this is just a tuning parameter, not a hard limit.
Clarify what we're calculating here and why.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions
