Subject: Re: NetBSD/xen network problems (need help)
To: None <andreas@planix.com>
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
List: port-xen
Date: 03/15/2006 08:35:34
> m_makewritable origlen 112 newlen 182 error 0
> panic: m_makewritable: length changed
the following would be the minimal fix.
YAMAMOTO Takashi
Index: if_xennet.c
===================================================================
--- if_xennet.c (revision 1576)
+++ if_xennet.c (working copy)
@@ -787,8 +787,7 @@ xen_network_handler(void *arg)
* memory, copy data and push the receive
* buffer back to the hypervisor.
*/
- m->m_len = MHLEN;
- m->m_pkthdr.len = 0;
+ m->m_len = m->m_pkthdr.len = 0;
m_copyback(m, 0, rx->status, pktp);
xennet_rx_push_buffer(sc, rx->id);
if (m->m_pkthdr.len < rx->status) {