diff options
author | Arseniy Krasnov <AVKrasnov@sberdevices.ru> | 2023-07-25 20:29:09 +0300 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2023-07-27 15:51:48 +0200 |
commit | 051e77e33946f932e6879bf4df2773e3c998c3a7 (patch) | |
tree | fc1b227d5947fd17355bf40a5b77bd68786a973d /lib/crypto/Makefile | |
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 <AVKrasnov@sberdevices.ru>
Reviewed-by: Bobby Eshleman <bobby.eshleman@bytedance.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'lib/crypto/Makefile')
0 files changed, 0 insertions, 0 deletions