Message ID | 20110916015014.GW21309@gospo.rdu.redhat.com |
---|---|
State | Not Applicable, archived |
Delegated to: | David Miller |
Headers | show |
diff --git a/hw/e1000.c b/hw/e1000.c index a6d12c5..e74dbf3 100644 --- a/hw/e1000.c +++ b/hw/e1000.c @@ -192,9 +192,14 @@ rxbufsize(uint32_t v) return 2048; } +static void e1000_reset(void *opaque); + static void set_ctrl(E1000State *s, int index, uint32_t val) { + /* reset the hardware registers */ + if (val & E1000_CTRL_RST) + e1000_reset(s); /* RST is self clearing */ s->mac_reg[CTRL] = val & ~E1000_CTRL_RST; }