All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: riegamaths@gmail.com, qemu-devel <qemu-devel@nongnu.org>,
	qemu-trivial@nongnu.org
Cc: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>,
	Dunrong Huang <riegamaths@gmail.com>
Subject: Re: [Qemu-trivial] [Qemu-devel] [PATCH] build: Fix build breakage detected by buildbot
Date: Sat, 04 Aug 2012 07:56:25 -0500	[thread overview]
Message-ID: <87boiqbyti.fsf@codemonkey.ws> (raw)
In-Reply-To: <1344079795-8050-1-git-send-email-riegamaths@gmail.com>

riegamaths@gmail.com writes:

> From: Dunrong Huang <riegamaths@gmail.com>
>
> More details:
> http://buildbot.b1-systems.de/qemu/builders/xen_unstable/builds/83/steps/compile/logs/stdio
>
> VLANState has been removed since commit a005d07, so "vlan id" should be
> fetched using net_hub_id_for_client().
>
> Signed-off-by: Dunrong Huang <riegamaths@gmail.com>

Applied. Thanks.

Regards,

Anthony Liguori

> ---
>  hw/xen_backend.h   |    1 +
>  hw/xen_devconfig.c |   10 ++++++----
>  2 files changed, 7 insertions(+), 4 deletions(-)
>
> diff --git a/hw/xen_backend.h b/hw/xen_backend.h
> index 3305630..fea86dd 100644
> --- a/hw/xen_backend.h
> +++ b/hw/xen_backend.h
> @@ -4,6 +4,7 @@
>  #include "xen_common.h"
>  #include "sysemu.h"
>  #include "net.h"
> +#include "net/hub.h"
>  
>  /* ------------------------------------------------------------- */
>  
> diff --git a/hw/xen_devconfig.c b/hw/xen_devconfig.c
> index 0928613..d83e8d0 100644
> --- a/hw/xen_devconfig.c
> +++ b/hw/xen_devconfig.c
> @@ -123,19 +123,21 @@ int xen_config_dev_nic(NICInfo *nic)
>  {
>      char fe[256], be[256];
>      char mac[20];
> +    int vlan_id = -1;
>  
> +    net_hub_id_for_client(nic->netdev, &vlan_id);
>      snprintf(mac, sizeof(mac), "%02x:%02x:%02x:%02x:%02x:%02x",
>               nic->macaddr.a[0], nic->macaddr.a[1], nic->macaddr.a[2],
>               nic->macaddr.a[3], nic->macaddr.a[4], nic->macaddr.a[5]);
> -    xen_be_printf(NULL, 1, "config nic %d: mac=\"%s\"\n", nic->vlan->id, mac);
> -    xen_config_dev_dirs("vif", "qnic", nic->vlan->id, fe, be, sizeof(fe));
> +    xen_be_printf(NULL, 1, "config nic %d: mac=\"%s\"\n", vlan_id, mac);
> +    xen_config_dev_dirs("vif", "qnic", vlan_id, fe, be, sizeof(fe));
>  
>      /* frontend */
> -    xenstore_write_int(fe, "handle",     nic->vlan->id);
> +    xenstore_write_int(fe, "handle",     vlan_id);
>      xenstore_write_str(fe, "mac",        mac);
>  
>      /* backend */
> -    xenstore_write_int(be, "handle",     nic->vlan->id);
> +    xenstore_write_int(be, "handle",     vlan_id);
>      xenstore_write_str(be, "mac",        mac);
>  
>      /* common stuff */
> -- 
> 1.7.8.6


WARNING: multiple messages have this Message-ID (diff)
From: Anthony Liguori <anthony@codemonkey.ws>
To: riegamaths@gmail.com, qemu-devel <qemu-devel@nongnu.org>,
	qemu-trivial@nongnu.org
Cc: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Subject: Re: [Qemu-devel] [PATCH] build: Fix build breakage detected by buildbot
Date: Sat, 04 Aug 2012 07:56:25 -0500	[thread overview]
Message-ID: <87boiqbyti.fsf@codemonkey.ws> (raw)
In-Reply-To: <1344079795-8050-1-git-send-email-riegamaths@gmail.com>

riegamaths@gmail.com writes:

> From: Dunrong Huang <riegamaths@gmail.com>
>
> More details:
> http://buildbot.b1-systems.de/qemu/builders/xen_unstable/builds/83/steps/compile/logs/stdio
>
> VLANState has been removed since commit a005d07, so "vlan id" should be
> fetched using net_hub_id_for_client().
>
> Signed-off-by: Dunrong Huang <riegamaths@gmail.com>

Applied. Thanks.

Regards,

Anthony Liguori

> ---
>  hw/xen_backend.h   |    1 +
>  hw/xen_devconfig.c |   10 ++++++----
>  2 files changed, 7 insertions(+), 4 deletions(-)
>
> diff --git a/hw/xen_backend.h b/hw/xen_backend.h
> index 3305630..fea86dd 100644
> --- a/hw/xen_backend.h
> +++ b/hw/xen_backend.h
> @@ -4,6 +4,7 @@
>  #include "xen_common.h"
>  #include "sysemu.h"
>  #include "net.h"
> +#include "net/hub.h"
>  
>  /* ------------------------------------------------------------- */
>  
> diff --git a/hw/xen_devconfig.c b/hw/xen_devconfig.c
> index 0928613..d83e8d0 100644
> --- a/hw/xen_devconfig.c
> +++ b/hw/xen_devconfig.c
> @@ -123,19 +123,21 @@ int xen_config_dev_nic(NICInfo *nic)
>  {
>      char fe[256], be[256];
>      char mac[20];
> +    int vlan_id = -1;
>  
> +    net_hub_id_for_client(nic->netdev, &vlan_id);
>      snprintf(mac, sizeof(mac), "%02x:%02x:%02x:%02x:%02x:%02x",
>               nic->macaddr.a[0], nic->macaddr.a[1], nic->macaddr.a[2],
>               nic->macaddr.a[3], nic->macaddr.a[4], nic->macaddr.a[5]);
> -    xen_be_printf(NULL, 1, "config nic %d: mac=\"%s\"\n", nic->vlan->id, mac);
> -    xen_config_dev_dirs("vif", "qnic", nic->vlan->id, fe, be, sizeof(fe));
> +    xen_be_printf(NULL, 1, "config nic %d: mac=\"%s\"\n", vlan_id, mac);
> +    xen_config_dev_dirs("vif", "qnic", vlan_id, fe, be, sizeof(fe));
>  
>      /* frontend */
> -    xenstore_write_int(fe, "handle",     nic->vlan->id);
> +    xenstore_write_int(fe, "handle",     vlan_id);
>      xenstore_write_str(fe, "mac",        mac);
>  
>      /* backend */
> -    xenstore_write_int(be, "handle",     nic->vlan->id);
> +    xenstore_write_int(be, "handle",     vlan_id);
>      xenstore_write_str(be, "mac",        mac);
>  
>      /* common stuff */
> -- 
> 1.7.8.6

  reply	other threads:[~2012-08-04 12:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-04 11:29 [Qemu-trivial] [PATCH] build: Fix build breakage detected by buildbot riegamaths
2012-08-04 11:29 ` [Qemu-devel] " riegamaths
2012-08-04 12:56 ` Anthony Liguori [this message]
2012-08-04 12:56   ` Anthony Liguori

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=87boiqbyti.fsf@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-trivial@nongnu.org \
    --cc=riegamaths@gmail.com \
    --cc=stefanha@linux.vnet.ibm.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.