From owner-svn-src-stable@FreeBSD.ORG Wed Mar 24 15:19:47 2010 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DD6B91065677; Wed, 24 Mar 2010 15:19:47 +0000 (UTC) (envelope-from luigi@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id CC1A18FC12; Wed, 24 Mar 2010 15:19:47 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o2OFJl11035434; Wed, 24 Mar 2010 15:19:47 GMT (envelope-from luigi@svn.freebsd.org) Received: (from luigi@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o2OFJlMT035432; Wed, 24 Mar 2010 15:19:47 GMT (envelope-from luigi@svn.freebsd.org) Message-Id: <201003241519.o2OFJlMT035432@svn.freebsd.org> From: Luigi Rizzo Date: Wed, 24 Mar 2010 15:19:47 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r205603 - stable/8/sys/netinet/ipfw X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Mar 2010 15:19:48 -0000 Author: luigi Date: Wed Mar 24 15:19:47 2010 New Revision: 205603 URL: http://svn.freebsd.org/changeset/base/205603 Log: MFC 205602: Honor ip.fw.one_pass when a packet comes out of a pipe without being delayed. I forgot to handle this case when i did the mtag cleanup three months ago. I am merging immediately because this bugfix is important for people using RELENG_8. PR: 145004 Modified: stable/8/sys/netinet/ipfw/ip_dn_io.c Modified: stable/8/sys/netinet/ipfw/ip_dn_io.c ============================================================================== --- stable/8/sys/netinet/ipfw/ip_dn_io.c Wed Mar 24 15:16:59 2010 (r205602) +++ stable/8/sys/netinet/ipfw/ip_dn_io.c Wed Mar 24 15:19:47 2010 (r205603) @@ -762,7 +762,11 @@ dummynet_io(struct mbuf **m0, int dir, s * */ if (/*dn_cfg.io_fast &&*/ m == *m0 && (dir & PROTO_LAYER2) == 0 ) { - /* fast io */ + /* fast io, rename the tag * to carry reinject info. */ + struct m_tag *tag = m_tag_first(m); + + tag->m_tag_cookie = MTAG_IPFW_RULE; + tag->m_tag_id = 0; io_pkt_fast++; if (m->m_nextpkt != NULL) { printf("dummynet: fast io: pkt chain detected!\n");