From owner-cvs-src@FreeBSD.ORG Wed Jun 14 19:32:02 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 06F5616A479; Wed, 14 Jun 2006 19:32:02 +0000 (UTC) (envelope-from gallatin@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id B2E5F43D45; Wed, 14 Jun 2006 19:32:01 +0000 (GMT) (envelope-from gallatin@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k5EJW1WI032246; Wed, 14 Jun 2006 19:32:01 GMT (envelope-from gallatin@repoman.freebsd.org) Received: (from gallatin@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k5EJW1RM032245; Wed, 14 Jun 2006 19:32:01 GMT (envelope-from gallatin) Message-Id: <200606141932.k5EJW1RM032245@repoman.freebsd.org> From: Andrew Gallatin Date: Wed, 14 Jun 2006 19:32:01 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/dev/mxge if_mxge.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2006 19:32:02 -0000 gallatin 2006-06-14 19:32:01 UTC FreeBSD src repository Modified files: sys/dev/mxge if_mxge.c Log: Much to my surprise, IFQ_DRV_DEQUEUE() can return a null mbuf even if !IFQ_DRV_IS_EMPTY(). Taking this into account, I re-structured the transmit routine so as to avoid adding another if/then in the critical path. Thanks to brueffer for showing my how to test with altq/pf. Revision Changes Path 1.6 +11 -13 src/sys/dev/mxge/if_mxge.c