From owner-cvs-all Thu Jun 20 14:30:29 2002 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 C5B7337B41B; Thu, 20 Jun 2002 14:29:56 -0700 (PDT) Received: (from luigi@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g5KLTu577564; Thu, 20 Jun 2002 14:29:56 -0700 (PDT) (envelope-from luigi) Message-Id: <200206202129.g5KLTu577564@freefall.freebsd.org> From: Luigi Rizzo Date: Thu, 20 Jun 2002 14:29:56 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/sys mbuf.h 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 luigi 2002/06/20 14:29:56 PDT Modified files: sys/sys mbuf.h Log: Add some #define's for mbuf annotations. As the comment in the code says, eventually there will be a proper data structure (e.g NetBSD's struct m_tag) to store chains of annotations, and mbuf-handling procedures will handle these chains in the correct way. Right now, these chains do not exist, and we just use the constants defined here to implement simple ad-hoc solutions to remove some global variables used so far to pass around informations about packets being processed. Global variables are not only ugly and make the code unreadable, they also prevent from using parallelism in network stack processing. (the 3-days MFC only refers to this commit, i.e. the PACKET_TAG_* constants; the full mechanism will be committed and MFC'ed on a longer timescale). MFC after: 3 days Revision Changes Path 1.91 +48 -0 src/sys/sys/mbuf.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message