search for: vhost_get_hdr

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

2010 Mar 03
1
[RFC][ PATCH 2/3] vhost-net: handle vnet_hdr processing for MRG_RX_BUF
...log_used = false; vq->log_addr = -1ull; - vq->hdr_size = 0; + vq->guest_hlen = 0; + vq->sock_hlen = 0; vq->private_data = NULL; vq->log_base = NULL; vq->error_ctx = NULL; @@ -848,20 +849,85 @@ return 0; } +static int +vhost_get_hdr(struct vhost_virtqueue *vq, int *in, struct vhost_log *log, + int *log_num) +{ + struct iovec *heads = vq->heads; + struct iovec *iov = vq->iov; + int out; + + *in = 0; + iov[0].iov_len = 0; + + /* get buffer, starting from iov[1] */ + heads[0]....
2010 Mar 03
1
[RFC][ PATCH 2/3] vhost-net: handle vnet_hdr processing for MRG_RX_BUF
...log_used = false; vq->log_addr = -1ull; - vq->hdr_size = 0; + vq->guest_hlen = 0; + vq->sock_hlen = 0; vq->private_data = NULL; vq->log_base = NULL; vq->error_ctx = NULL; @@ -848,20 +849,85 @@ return 0; } +static int +vhost_get_hdr(struct vhost_virtqueue *vq, int *in, struct vhost_log *log, + int *log_num) +{ + struct iovec *heads = vq->heads; + struct iovec *iov = vq->iov; + int out; + + *in = 0; + iov[0].iov_len = 0; + + /* get buffer, starting from iov[1] */ + heads[0]....