diff options
| author | Arseniy Krasnov <[email protected]> | 2023-07-25 20:29:09 +0300 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2023-07-27 15:51:48 +0200 |
| commit | 051e77e33946f932e6879bf4df2773e3c998c3a7 (patch) | |
| tree | fc1b227d5947fd17355bf40a5b77bd68786a973d /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | bc758ade614576d1c1b167af0246ada8c916c804 (diff) | |
virtio/vsock: rework MSG_PEEK for SOCK_STREAM
This reworks current implementation of MSG_PEEK logic:
1) Replaces 'skb_queue_walk_safe()' with 'skb_queue_walk()'. There is
no need in the first one, as there are no removes of skb in loop.
2) Removes nested while loop - MSG_PEEK logic could be implemented
without it: just iterate over skbs without removing it and copy
data from each until destination buffer is not full.
Signed-off-by: Arseniy Krasnov <[email protected]>
Reviewed-by: Bobby Eshleman <[email protected]>
Reviewed-by: Stefano Garzarella <[email protected]>
Acked-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions