From owner-freebsd-hackers@FreeBSD.ORG Wed Feb 6 09:54:44 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 2A145FBF for ; Wed, 6 Feb 2013 09:54:44 +0000 (UTC) (envelope-from lsanfil@marvell.com) Received: from na3sys009aog110.obsmtp.com (na3sys009aog110.obsmtp.com [74.125.149.203]) by mx1.freebsd.org (Postfix) with ESMTP id E6E3BD84 for ; Wed, 6 Feb 2013 09:54:43 +0000 (UTC) Received: from SC-OWA.marvell.com ([199.233.58.135]) (using TLSv1) by na3sys009aob110.postini.com ([74.125.148.12]) with SMTP ID DSNKURIoYxq1QsyWfY8xnIs+dQihIDKEmyCA@postini.com; Wed, 06 Feb 2013 01:54:43 PST Received: from SC-VEXCH4.marvell.com ([::1]) by SC-OWA.marvell.com ([::1]) with mapi; Wed, 6 Feb 2013 01:50:41 -0800 From: Lino Sanfilippo To: "freebsd-hackers@freebsd.org" Date: Wed, 6 Feb 2013 01:50:39 -0800 Subject: Mbuf memory handling Thread-Topic: Mbuf memory handling Thread-Index: Ac4ET2tf3PBUzyIhR66C8VAs8jlWQQ== Message-ID: <175CCF5F49938B4D99B2E3EF7F558EBE1C73F401F3@SC-VEXCH4.marvell.com> Accept-Language: de-DE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: de-DE, en-US MIME-Version: 1.0 X-Mailman-Approved-At: Wed, 06 Feb 2013 12:30:07 +0000 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: Axel Fischer , Markus Althoff X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Feb 2013 09:54:44 -0000 Hi all, I want to implement a device driver for a NIC which stores received data in= to chunks within a page (>=3D4k) in host memory. One page shall be used for multiple packets= and freed after all mbufs linked to that page have been processed. So I would like to= know what is the recommended way to handle this in FreeBSD? Any hints are very appreciated. Regards, Lino