From: Jan Kiszka <jan.kiszka@siemens.com>
To: qemu-devel <qemu-devel@nongnu.org>,
Anthony Liguori <aliguori@us.ibm.com>
Cc: qemu-trivial <qemu-trivial@nongnu.org>, qemu-stable@nongnu.org
Subject: Re: [Qemu-trivial] [PATCH] e1000: Preserve link state across device reset
Date: Tue, 24 Jan 2012 13:50:12 +0100 [thread overview]
Message-ID: <4F1EA904.4000105@siemens.com> (raw)
In-Reply-To: <4F1EA872.4030905@siemens.com>
On 2012-01-24 13:47, Jan Kiszka wrote:
> A device reset does not affect the link state, only set_link does.
>
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
> ---
> hw/e1000.c | 5 +++++
> 1 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/hw/e1000.c b/hw/e1000.c
> index 86c5416..76e736f 100644
> --- a/hw/e1000.c
> +++ b/hw/e1000.c
> @@ -1133,6 +1133,11 @@ static void e1000_reset(void *opaque)
> memmove(d->mac_reg, mac_reg_init, sizeof mac_reg_init);
> d->rxbuf_min_shift = 1;
> memset(&d->tx, 0, sizeof d->tx);
> +
> + if (d->nic->nc.link_down) {
> + d->mac_reg[STATUS] &= ~E1000_STATUS_LU;
> + d->phy_reg[PHY_STATUS] &= ~MII_SR_LINK_STATUS;
> + }
> }
>
> static NetClientInfo net_e1000_info = {
May rather go via trivial, sorry.
Jan
--
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux
WARNING: multiple messages have this Message-ID (diff)
From: Jan Kiszka <jan.kiszka@siemens.com>
To: qemu-devel <qemu-devel@nongnu.org>,
Anthony Liguori <aliguori@us.ibm.com>
Cc: qemu-trivial <qemu-trivial@nongnu.org>, qemu-stable@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] e1000: Preserve link state across device reset
Date: Tue, 24 Jan 2012 13:50:12 +0100 [thread overview]
Message-ID: <4F1EA904.4000105@siemens.com> (raw)
In-Reply-To: <4F1EA872.4030905@siemens.com>
On 2012-01-24 13:47, Jan Kiszka wrote:
> A device reset does not affect the link state, only set_link does.
>
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
> ---
> hw/e1000.c | 5 +++++
> 1 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/hw/e1000.c b/hw/e1000.c
> index 86c5416..76e736f 100644
> --- a/hw/e1000.c
> +++ b/hw/e1000.c
> @@ -1133,6 +1133,11 @@ static void e1000_reset(void *opaque)
> memmove(d->mac_reg, mac_reg_init, sizeof mac_reg_init);
> d->rxbuf_min_shift = 1;
> memset(&d->tx, 0, sizeof d->tx);
> +
> + if (d->nic->nc.link_down) {
> + d->mac_reg[STATUS] &= ~E1000_STATUS_LU;
> + d->phy_reg[PHY_STATUS] &= ~MII_SR_LINK_STATUS;
> + }
> }
>
> static NetClientInfo net_e1000_info = {
May rather go via trivial, sorry.
Jan
--
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux
next prev parent reply other threads:[~2012-01-24 12:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-24 12:47 [Qemu-devel] [PATCH] e1000: Preserve link state across device reset Jan Kiszka
2012-01-24 12:50 ` Jan Kiszka [this message]
2012-01-24 12:50 ` Jan Kiszka
2012-01-27 6:21 ` Stefan Hajnoczi
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=4F1EA904.4000105@siemens.com \
--to=jan.kiszka@siemens.com \
--cc=aliguori@us.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-stable@nongnu.org \
--cc=qemu-trivial@nongnu.org \
/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.