From owner-cvs-all Wed Jun 20 12:48:44 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id B414037B406; Wed, 20 Jun 2001 12:48:37 -0700 (PDT) (envelope-from bmilekic@FreeBSD.org) Received: (from bmilekic@localhost) by freefall.freebsd.org (8.11.3/8.11.3) id f5KJmbG47979; Wed, 20 Jun 2001 12:48:37 -0700 (PDT) (envelope-from bmilekic) Message-Id: <200106201948.f5KJmbG47979@freefall.freebsd.org> From: Bosko Milekic Date: Wed, 20 Jun 2001 12:48:37 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/lge if_lge.c src/sys/dev/nge if_nge.c src/sys/dev/vx if_vx.c src/sys/kern uipc_mbuf.c src/sys/pci if_dc.c if_rl.c if_sf.c if_sis.c if_sk.c if_vr.c if_wb.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG bmilekic 2001/06/20 12:48:37 PDT Modified files: sys/dev/lge if_lge.c sys/dev/nge if_nge.c sys/dev/vx if_vx.c sys/kern uipc_mbuf.c sys/pci if_dc.c if_rl.c if_sf.c if_sis.c if_sk.c if_vr.c if_wb.c Log: Change m_devget()'s outdated and unused `offset' argument to actually mean something: offset into the first mbuf of the target chain before copying the source data over. Make drivers using m_devget() with a first argument "data - ETHER_ALIGN" to use the offset argument to pass ETHER_ALIGN in. The way it was previously done is potentially dangerous if the source data was at the top of a page and the offset caused the previous page to be copied (if the previous page has not yet been appropriately mapped). The old `offset' argument in m_devget() is not used anywhere (it's always 0) and dates back to ~1995 (and earlier?) when support for ethernet trailers existed. With that support gone, it was merely collecting dust. Tested on alpha by: jlemon Partially submitted by: jlemon Reviewed by: jlemon MFC after: 3 weeks Revision Changes Path 1.6 +4 -5 src/sys/dev/lge/if_lge.c 1.14 +4 -5 src/sys/dev/nge/if_nge.c 1.33 +2 -5 src/sys/dev/vx/if_vx.c 1.85 +26 -31 src/sys/kern/uipc_mbuf.c 1.52 +4 -5 src/sys/pci/if_dc.c 1.59 +9 -22 src/sys/pci/if_rl.c 1.35 +4 -5 src/sys/pci/if_sf.c 1.33 +4 -5 src/sys/pci/if_sis.c 1.43 +4 -5 src/sys/pci/if_sk.c 1.44 +4 -5 src/sys/pci/if_vr.c 1.42 +4 -5 src/sys/pci/if_wb.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message