Date: Wed, 26 Jan 2011 23:18:24 +0000 (UTC) From: Janne Snabb <snabb@epipe.com> To: Alex <joovke@joovke.com> Cc: freebsd-xen@freebsd.org Subject: Re: Help! Network issue with freebsd + Xen Message-ID: <alpine.BSF.2.00.1101262313310.20212@tiktik.epipe.com> In-Reply-To: <4D408984.3030502@joovke.com> References: <C29EBBC5-FDAA-463A-B16A-1BF05F28925D@kfu.com> <4D408984.3030502@joovke.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] On Thu, 27 Jan 2011, Alex wrote: [..] > the HVM kernel just panics and I remember seeing something along the lines of > "do something smart?" > > does this patch you mention fix that? Yes. See http://www.freebsd.org/cgi/query-pr.cgi?pr=154302 The patch is also attached to this mail. Best Regards, -- Janne Snabb / EPIPE Communications snabb@epipe.com - http://epipe.com/ [-- Attachment #2 --] --- sys/dev/xen/netfront/netfront.c.orig 2010-12-21 17:09:25.000000000 +0000 +++ sys/dev/xen/netfront/netfront.c 2011-01-17 10:11:06.000000000 +0000 @@ -401,13 +401,14 @@ xen_net_read_mac(device_t dev, uint8_t mac[]) { int error, i; char *s, *e, *macstr; - error = xs_read(XST_NIL, xenbus_get_node(dev), "mac", NULL, - (void **) &macstr); - if (error) + if ((error = xs_read(XST_NIL, xenbus_get_node(dev), "mac", NULL, + (void **) &macstr)) != 0 && + (error = xs_read(XST_NIL, xenbus_get_otherend_path(dev), + "mac", NULL, (void **) &macstr)) != 0) return (error); s = macstr; for (i = 0; i < ETHER_ADDR_LEN; i++) { mac[i] = strtoul(s, &e, 16);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1101262313310.20212>
