search for: curr_off

Displaying 2 results from an estimated 2 matches for "curr_off".

Did you mean: curr_offs
2023 Feb 16
0
[RFC PATCH v1 04/12] vhost/vsock: non-linear skb handling support
..., >+ struct iov_iter *iov_iter, >+ size_t len) >+{ >+ size_t rest_len = len; >+ >+ while (rest_len && virtio_vsock_skb_has_frags(skb)) { >+ struct bio_vec *curr_vec; >+ size_t curr_vec_end; >+ size_t to_copy; >+ int curr_frag; >+ int curr_offs; >+ >+ curr_frag = VIRTIO_VSOCK_SKB_CB(skb)->curr_frag; >+ curr_offs = VIRTIO_VSOCK_SKB_CB(skb)->frag_off; >+ curr_vec = &skb_shinfo(skb)->frags[curr_frag]; >+ >+ curr_vec_end = curr_vec->bv_offset + curr_vec->bv_len; >+ to_copy = min(rest_len, (size_t)...
2023 Feb 16
0
[RFC PATCH v1 06/12] vsock/virtio: non-linear skb handling for TAP dev
...ar_skb(struct sk_buff *skb, >+ void *dst, >+ size_t len) >+{ >+ size_t rest_len = len; >+ >+ while (rest_len && virtio_vsock_skb_has_frags(skb)) { >+ struct bio_vec *curr_vec; >+ size_t curr_vec_end; >+ size_t to_copy; >+ int curr_frag; >+ int curr_offs; >+ >+ curr_frag = VIRTIO_VSOCK_SKB_CB(skb)->curr_frag; >+ curr_offs = VIRTIO_VSOCK_SKB_CB(skb)->frag_off; >+ curr_vec = &skb_shinfo(skb)->frags[curr_frag]; >+ >+ curr_vec_end = curr_vec->bv_offset + curr_vec->bv_len; >+ to_copy = min(rest_len, (size_t)...