From 12c009627283dd670ebdb223b04a23b49fb2e1b0 Mon Sep 17 00:00:00 2001 From: Damien Bergamini Date: Fri, 10 Dec 2004 21:25:54 +0000 Subject: fix mbuf defragmentation --- sys/dev/pci/if_ipw.c | 4 ++-- sys/dev/pci/if_iwi.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/pci/if_ipw.c b/sys/dev/pci/if_ipw.c index 7f0dbec6c59..6222a590273 100644 --- a/sys/dev/pci/if_ipw.c +++ b/sys/dev/pci/if_ipw.c @@ -1,4 +1,4 @@ -/* $Id: if_ipw.c,v 1.35 2004/12/06 20:27:15 damien Exp $ */ +/* $Id: if_ipw.c,v 1.36 2004/12/10 21:25:52 damien Exp $ */ /*- * Copyright (c) 2004 @@ -1234,7 +1234,7 @@ ipw_tx_start(struct ifnet *ifp, struct mbuf *m, struct ieee80211_node *ni) m_copydata(m, 0, m->m_pkthdr.len, mtod(mnew, caddr_t)); m_freem(m); - m->m_len = m->m_pkthdr.len; + mnew->m_len = mnew->m_pkthdr.len; m = mnew; error = bus_dmamap_load_mbuf(sc->sc_dmat, sbuf->map, m, diff --git a/sys/dev/pci/if_iwi.c b/sys/dev/pci/if_iwi.c index c16666b40f7..7b62b3fdec5 100644 --- a/sys/dev/pci/if_iwi.c +++ b/sys/dev/pci/if_iwi.c @@ -1,4 +1,4 @@ -/* $Id: if_iwi.c,v 1.20 2004/12/06 20:27:15 damien Exp $ */ +/* $Id: if_iwi.c,v 1.21 2004/12/10 21:25:53 damien Exp $ */ /*- * Copyright (c) 2004 @@ -1081,7 +1081,7 @@ iwi_tx_start(struct ifnet *ifp, struct mbuf *m, struct ieee80211_node *ni) m_copydata(m, 0, m->m_pkthdr.len, mtod(mnew, caddr_t)); m_freem(m); - m->m_len = m->m_pkthdr.len; + mnew->m_len = mnew->m_pkthdr.len; m = mnew; error = bus_dmamap_load_mbuf(sc->sc_dmat, buf->map, m, -- cgit v1.2.3