All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: amit.shah@redhat.com, quintela@redhat.com, qemu-devel@nongnu.org,
	kraxel@redhat.com
Subject: Re: [Qemu-devel] [PATCHv6 01/11] tap: add interface to get device fd
Date: Thu, 01 Apr 2010 14:17:58 -0500	[thread overview]
Message-ID: <4BB4F166.6010609@codemonkey.ws> (raw)
In-Reply-To: <9dbe0adf87df1ccad0cfbaefca6a529ca5775828.1268823114.git.mst@redhat.com>

On 03/17/2010 06:07 AM, Michael S. Tsirkin wrote:
> Will be used by vhost to attach/detach to backend.
>
> Signed-off-by: Michael S. Tsirkin<mst@redhat.com>
>    

Applied.  Thanks.

Regards,

Anthony Liguori

> ---
>   net/tap.c |    7 +++++++
>   net/tap.h |    2 ++
>   2 files changed, 9 insertions(+), 0 deletions(-)
>
> diff --git a/net/tap.c b/net/tap.c
> index 7a7320c..fc59fd4 100644
> --- a/net/tap.c
> +++ b/net/tap.c
> @@ -269,6 +269,13 @@ static void tap_poll(VLANClientState *nc, bool enable)
>       tap_write_poll(s, enable);
>   }
>
> +int tap_get_fd(VLANClientState *nc)
> +{
> +    TAPState *s = DO_UPCAST(TAPState, nc, nc);
> +    assert(nc->info->type == NET_CLIENT_TYPE_TAP);
> +    return s->fd;
> +}
> +
>   /* fd support */
>
>   static NetClientInfo net_tap_info = {
> diff --git a/net/tap.h b/net/tap.h
> index 538a562..a244b28 100644
> --- a/net/tap.h
> +++ b/net/tap.h
> @@ -48,4 +48,6 @@ int tap_probe_vnet_hdr(int fd);
>   int tap_probe_has_ufo(int fd);
>   void tap_fd_set_offload(int fd, int csum, int tso4, int tso6, int ecn, int ufo);
>
> +int tap_get_fd(VLANClientState *vc);
> +
>   #endif /* QEMU_NET_TAP_H */
>    

  reply	other threads:[~2010-04-01 19:18 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-17 11:07 [Qemu-devel] [PATCHv6 00/11] vhost-net: upstream integration Michael S. Tsirkin
2010-03-17 11:07 ` [Qemu-devel] [PATCHv6 01/11] tap: add interface to get device fd Michael S. Tsirkin
2010-04-01 19:17   ` Anthony Liguori [this message]
2010-03-17 11:07 ` [Qemu-devel] [PATCHv6 02/11] kvm: add API to set ioeventfd Michael S. Tsirkin
2010-03-17 11:07 ` [Qemu-devel] [PATCHv6 03/11] notifier: event notifier implementation Michael S. Tsirkin
2010-04-02 14:53   ` [Qemu-devel] " Paolo Bonzini
2010-03-17 11:08 ` [Qemu-devel] [PATCHv6 04/11] virtio: notifier support + APIs for queue fields Michael S. Tsirkin
2010-03-17 11:08 ` [Qemu-devel] [PATCHv6 05/11] virtio: add set_status callback Michael S. Tsirkin
2010-03-17 11:08 ` [Qemu-devel] [PATCHv6 06/11] virtio: move typedef to qemu-common Michael S. Tsirkin
2010-03-17 11:08 ` [Qemu-devel] [PATCHv6 07/11] virtio-pci: fill in notifier support Michael S. Tsirkin
2010-03-17 11:08 ` [Qemu-devel] [PATCHv6 08/11] vhost: vhost net support Michael S. Tsirkin
2010-03-22 20:58   ` Anthony Liguori
2010-03-22 21:11     ` Michael S. Tsirkin
2010-03-17 11:08 ` [Qemu-devel] [PATCHv6 09/11] tap: add vhost/vhostfd options Michael S. Tsirkin
2010-03-17 11:08 ` [Qemu-devel] [PATCHv6 10/11] tap: add API to retrieve vhost net header Michael S. Tsirkin
2010-03-17 11:08 ` [Qemu-devel] [PATCHv6 11/11] virtio-net: vhost net support Michael S. Tsirkin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4BB4F166.6010609@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --cc=amit.shah@redhat.com \
    --cc=kraxel@redhat.com \
    --cc=mst@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=quintela@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.