From: Thomas Huth <thuth@redhat.com>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Jason Wang <jasowang@redhat.com>,
qemu-devel@nongnu.org, Stefan Hajnoczi <stefanha@redhat.com>
Subject: Re: [Qemu-devel] [PATCH] tap: fix non-linux build
Date: Fri, 19 Jun 2015 10:16:32 +0200 [thread overview]
Message-ID: <20150619101632.7f9002ee@thh440s> (raw)
In-Reply-To: <1434699834-27593-1-git-send-email-mst@redhat.com>
On Fri, 19 Jun 2015 09:44:00 +0200
"Michael S. Tsirkin" <mst@redhat.com> wrote:
> tap_fd_set_vnet_le/tap_fd_set_vnet_be was missing,
> fix it up.
>
> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
> ---
> net/tap-aix.c | 10 ++++++++++
> net/tap-bsd.c | 10 ++++++++++
> net/tap-haiku.c | 10 ++++++++++
> net/tap-solaris.c | 10 ++++++++++
> net/tap-win32.c | 10 ++++++++++
> 5 files changed, 50 insertions(+)
>
> diff --git a/net/tap-aix.c b/net/tap-aix.c
> index 18fdbf3..e84fc39 100644
> --- a/net/tap-aix.c
> +++ b/net/tap-aix.c
> @@ -55,6 +55,16 @@ void tap_fd_set_vnet_hdr_len(int fd, int len)
> {
> }
>
> +int tap_fd_set_vnet_le(int fd, int is_le)
> +{
> + return -EINVAL;
> +}
> +
> +int tap_fd_set_vnet_be(int fd, int is_be)
> +{
> + return -EINVAL;
> +}
> +
> void tap_fd_set_offload(int fd, int csum, int tso4,
> int tso6, int ecn, int ufo)
> {
> diff --git a/net/tap-bsd.c b/net/tap-bsd.c
> index 5889920..7028d9b 100644
> --- a/net/tap-bsd.c
> +++ b/net/tap-bsd.c
> @@ -196,6 +196,16 @@ void tap_fd_set_vnet_hdr_len(int fd, int len)
> {
> }
>
> +int tap_fd_set_vnet_le(int fd, int is_le)
> +{
> + return -EINVAL;
> +}
> +
> +int tap_fd_set_vnet_be(int fd, int is_be)
> +{
> + return -EINVAL;
> +}
> +
> void tap_fd_set_offload(int fd, int csum, int tso4,
> int tso6, int ecn, int ufo)
> {
> diff --git a/net/tap-haiku.c b/net/tap-haiku.c
> index d18590c..2e738ec 100644
> --- a/net/tap-haiku.c
> +++ b/net/tap-haiku.c
> @@ -55,6 +55,16 @@ void tap_fd_set_vnet_hdr_len(int fd, int len)
> {
> }
>
> +int tap_fd_set_vnet_le(int fd, int is_le)
> +{
> + return -EINVAL;
> +}
> +
> +int tap_fd_set_vnet_be(int fd, int is_be)
> +{
> + return -EINVAL;
> +}
> +
> void tap_fd_set_offload(int fd, int csum, int tso4,
> int tso6, int ecn, int ufo)
> {
> diff --git a/net/tap-solaris.c b/net/tap-solaris.c
> index 90b2fd1..0f60f78 100644
> --- a/net/tap-solaris.c
> +++ b/net/tap-solaris.c
> @@ -223,6 +223,16 @@ void tap_fd_set_vnet_hdr_len(int fd, int len)
> {
> }
>
> +int tap_fd_set_vnet_le(int fd, int is_le)
> +{
> + return -EINVAL;
> +}
> +
> +int tap_fd_set_vnet_be(int fd, int is_be)
> +{
> + return -EINVAL;
> +}
> +
> void tap_fd_set_offload(int fd, int csum, int tso4,
> int tso6, int ecn, int ufo)
> {
> diff --git a/net/tap-win32.c b/net/tap-win32.c
> index f6fc961..625d53c 100644
> --- a/net/tap-win32.c
> +++ b/net/tap-win32.c
> @@ -688,6 +688,16 @@ void tap_fd_set_vnet_hdr_len(int fd, int len)
> {
> }
>
> +int tap_fd_set_vnet_le(int fd, int is_le)
> +{
> + return -EINVAL;
> +}
> +
> +int tap_fd_set_vnet_be(int fd, int is_be)
> +{
> + return -EINVAL;
> +}
> +
> static void tap_using_vnet_hdr(NetClientState *nc, bool using_vnet_hdr)
> {
> }
Reviewed-by: Thomas Huth <thuth@redhat.com>
next prev parent reply other threads:[~2015-06-19 8:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-19 7:44 [Qemu-devel] [PATCH] tap: fix non-linux build Michael S. Tsirkin
2015-06-19 8:16 ` Thomas Huth [this message]
2015-06-19 9:26 ` Greg Kurz
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=20150619101632.7f9002ee@thh440s \
--to=thuth@redhat.com \
--cc=jasowang@redhat.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).