From owner-p4-projects@FreeBSD.ORG Thu Aug 4 17:26:22 2005 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id B902416A421; Thu, 4 Aug 2005 17:26:21 +0000 (GMT) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 931AC16A41F for ; Thu, 4 Aug 2005 17:26:21 +0000 (GMT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 652BE43D45 for ; Thu, 4 Aug 2005 17:26:21 +0000 (GMT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j74HQL8e005750 for ; Thu, 4 Aug 2005 17:26:21 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j74HQLrF005747 for perforce@freebsd.org; Thu, 4 Aug 2005 17:26:21 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Thu, 4 Aug 2005 17:26:21 GMT Message-Id: <200508041726.j74HQLrF005747@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson To: Perforce Change Reviews Cc: Subject: PERFORCE change 81456 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Aug 2005 17:26:22 -0000 http://perforce.freebsd.org/chv.cgi?CH=81456 Change 81456 by rwatson@rwatson_zoo on 2005/08/04 17:25:23 Update IFQ_HANDOFF_ADJ() for if_drv_flags; annotate why this is a bug. Affected files ... .. //depot/projects/netsmp/src/sys/net/if_var.h#9 edit Differences ... ==== //depot/projects/netsmp/src/sys/net/if_var.h#9 (text+ko) ==== @@ -422,6 +422,10 @@ #define IFQ_INC_DROPS(ifq) ((ifq)->ifq_drops++) #define IFQ_SET_MAXLEN(ifq, len) ((ifq)->ifq_maxlen = (len)) +/* + * XXXRW: The IFF_DRV_OACTIVE test should really occur in the device driver, + * not in the handoff logic, as that flag is locked by the device driver. + */ #define IFQ_HANDOFF_ADJ(ifp, m, adj, err) \ do { \ int len; \ @@ -434,7 +438,7 @@ (ifp)->if_obytes += len + (adj); \ if (mflags & M_MCAST) \ (ifp)->if_omcasts++; \ - if (((ifp)->if_flags & IFF_OACTIVE) == 0) \ + if (((ifp)->if_drv_flags & IFF_DRV_OACTIVE) == 0) \ if_start(ifp); \ } \ } while (0)