From owner-freebsd-net Mon Jun 17 16: 8:14 2002 Delivered-To: freebsd-net@freebsd.org Received: from crufty.research.bell-labs.com (ns2.research.bell-labs.com [204.178.16.49]) by hub.freebsd.org (Postfix) with ESMTP id A800137B40E for ; Mon, 17 Jun 2002 16:08:07 -0700 (PDT) Received: from grubby.research.bell-labs.com (H-135-104-2-9.research.bell-labs.com [135.104.2.9]) by crufty.research.bell-labs.com (8.12.2/8.12.2) with ESMTP id g5HN86CT054766 for ; Mon, 17 Jun 2002 19:08:06 -0400 (EDT) Received: from aura.research.bell-labs.com (aura.research.bell-labs.com [135.104.46.10]) by grubby.research.bell-labs.com (8.11.6/8.11.6) with ESMTP id g5HN80o02560 for ; Mon, 17 Jun 2002 19:08:00 -0400 (EDT) Received: from aura.research.bell-labs.com (localhost [127.0.0.1]) by aura.research.bell-labs.com (8.12.2/8.12.2) with ESMTP id g5HN7x9m009504 for ; Mon, 17 Jun 2002 19:07:59 -0400 (EDT) Received: from localhost (gopi@localhost) by aura.research.bell-labs.com (8.12.2/8.12.2/Submit) with ESMTP id g5HN7xaY009501 for ; Mon, 17 Jun 2002 19:07:59 -0400 (EDT) X-Authentication-Warning: aura.research.bell-labs.com: gopi owned process doing -bs Date: Mon, 17 Jun 2002 19:07:59 -0400 (EDT) From: Gopinath KN To: Subject: ti0 Gigabit driver Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hello All, I am noticing that a FreeBSD router is dropping many packets in the ip_output() routine (when called from ip_forward()). It was confirmed by "packets not forwardable/packets dropped due to lack of mbufs etc." messages of "netstat -s -p ip". The correponding output interface is the Netgear Gigabit (ti0). The giagbit driver sets the interface queue (if_snd of the ifnet structure) to a value which is 512 (The TX ring count of the NIC). This queue is where the packets are being dropped from. Can I increase this value to a larger number (say, 1024)? I am not sure what side-effect this is going to have as this might involve playing with some device memory. Does the NIC hardware/software assume that this value should not be beyond the maximum TX ring size (512) as indicated in one of the headers? Otherwise, can you suggest anyways of reducing/eliminating these drops - the CPU is not saturated - it is atleast 20% idle. Thanks, Gopi PS: Kindly CC replies to me. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message