From owner-freebsd-net Fri Feb 2 20:24:33 2001 Delivered-To: freebsd-net@freebsd.org Received: from onion.ish.org (onion.ish.org [210.145.219.202]) by hub.freebsd.org (Postfix) with ESMTP id 50D4337B491 for ; Fri, 2 Feb 2001 20:24:15 -0800 (PST) Received: from localhost (ishizuka@localhost [127.0.0.1]) by onion.ish.org (8.11.2/8.11.1/2000-12-01) with ESMTP id f134OCn99262 for ; Sat, 3 Feb 2001 13:24:13 +0900 (JST) (envelope-from ishizuka@ish.org) To: freebsd-net@FreeBSD.ORG Subject: Re: packet loss when 'ipfw pipe list' with dummynet and bridge In-Reply-To: <200102021415.f12EFBs70349@iguana.aciri.org> References: <20010202191214B.ishizuka@onion.ish.org> <200102021415.f12EFBs70349@iguana.aciri.org> X-Mailer: Mew version 1.94.2 on Emacs 19.34 / Mule 2.3 (SUETSUMUHANA) X-PGP-Fingerprint20: 276D 697A C2CB 1580 C683 8F18 DA98 1A4A 50D2 C4CB X-PGP-Fingerprint16: C6 DE 46 24 D7 9F 22 EB 79 E2 90 AB 1B 9A 35 2E X-PGP-Public-Key: http://www.ish.org/pgp-public-key.txt X-URL: http://www.ish.org/ Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20010203132412V.ishizuka@onion.ish.org> Date: Sat, 03 Feb 2001 13:24:12 +0900 From: Masachika ISHIZUKA X-Dispatcher: imput version 20000414(IM141) Lines: 23 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >> When I typed 'ipfw pipe list', packet loss occur. > > unfortunately the "pipe list" has to navigate through a list of > pipe/flow/queue descriptors to report its output, and at the moment > it does this with interrupts disabled to avoid that the data > structure changes while it is working. > > A better approach would probably be to set a semaphore before > starting, and release it at the end, and keep interrupts enabled > during the transfer but make sure that no object is created or > deleted and no pointer is changed during the process. You can > still risk loss (when e.g. you cannot create a new flow descriptor) > but better than the current method. Dear, luigi-san. Thank you for mail. As I set "net.inet.ip.dummynet.expire=0", if it will affect only to ip addresses founded newly when a semaphore is introduced, I'll be happy. -- ishizuka@ish.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message