From owner-cvs-all@FreeBSD.ORG Thu Dec 25 23:01:06 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F0A1116A4CE; Thu, 25 Dec 2003 23:01:06 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2B0DE43D2F; Thu, 25 Dec 2003 23:01:06 -0800 (PST) (envelope-from wpaul@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id hBQ7160B043845; Thu, 25 Dec 2003 23:01:06 -0800 (PST) (envelope-from wpaul@repoman.freebsd.org) Received: (from wpaul@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id hBQ715bU043844; Thu, 25 Dec 2003 23:01:05 -0800 (PST) (envelope-from wpaul) Message-Id: <200312260701.hBQ715bU043844@repoman.freebsd.org> From: Bill Paul Date: Thu, 25 Dec 2003 23:01:05 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/compat/ndis kern_ndis.c src/sys/dev/if_ndis if_ndis.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Dec 2003 07:01:07 -0000 wpaul 2003/12/25 23:01:05 PST FreeBSD src repository Modified files: sys/compat/ndis kern_ndis.c sys/dev/if_ndis if_ndis.c Log: Attempt to handle the status field in the ndis_packet oob area correctly. For received packets, an status of NDIS_STATUS_RESOURCES means we need to copy the packet data and return the ndis_packet to the driver immediatel. NDIS_STATUS_SUCCESS means we get to hold onto the packet, but we have to set the status to NDIS_STATUS_PENDING so the driver knows we're going to hang onto it for a while. For transmit packets, NDIS_STATUS_PENDING means the driver will asynchronously return the packet to us via the ndis_txeof() routine, and NDIS_STATUS_SUCCESS means the driver sent the frame, and NDIS (i.e. the OS) retains ownership of the packet and can free it right away. Revision Changes Path 1.15 +27 -3 src/sys/compat/ndis/kern_ndis.c 1.15 +27 -2 src/sys/dev/if_ndis/if_ndis.c