diff options
| author | Florian Westphal <[email protected]> | 2021-12-03 22:35:33 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2021-12-07 19:36:29 +0000 |
| commit | 5cbd886ce2a9f4627ff9cdab1bc97a401a24b309 (patch) | |
| tree | 619fde493de9a64d011222dacf77843a652eb58e /net/switchdev/switchdev.c | |
| parent | mptcp: add TCP_INQ cmsg support (diff) | |
| download | kernel-5cbd886ce2a9f4627ff9cdab1bc97a401a24b309.tar.gz kernel-5cbd886ce2a9f4627ff9cdab1bc97a401a24b309.zip | |
selftests: mptcp: add TCP_INQ support
Do checks on the returned inq counter.
Fail on:
1. Huge value (> 1 kbyte, test case files are 1 kb)
2. last hint larger than returned bytes when read was short
3. erronenous indication of EOF.
3) happens when a hint of X bytes reads X-1 on next call
but next recvmsg returns more data (instead of EOF).
Signed-off-by: Florian Westphal <[email protected]>
Signed-off-by: Mat Martineau <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
