diff options
| author | Arseniy Krasnov <[email protected]> | 2023-07-25 17:29:09 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2023-07-27 13:51:48 +0000 |
| commit | 051e77e33946f932e6879bf4df2773e3c998c3a7 (patch) | |
| tree | fc1b227d5947fd17355bf40a5b77bd68786a973d /net/unix/af_unix.c | |
| parent | net/mlx4: clean up a type issue (diff) | |
| download | kernel-051e77e33946f932e6879bf4df2773e3c998c3a7.tar.gz kernel-051e77e33946f932e6879bf4df2773e3c998c3a7.zip | |
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 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
