From owner-freebsd-net@FreeBSD.ORG Thu Dec 25 10:41:30 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A249916A4CE for ; Thu, 25 Dec 2003 10:41:30 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A16D43D1F for ; Thu, 25 Dec 2003 10:41:29 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.10/8.12.10) with ESMTP id hBPIfK1o059489; Thu, 25 Dec 2003 19:41:20 +0100 (CET) (envelope-from phk@phk.freebsd.dk) To: Luigi Rizzo From: "Poul-Henning Kamp" In-Reply-To: Your message of "Thu, 25 Dec 2003 10:25:49 PST." <20031225102549.A79161@xorpc.icir.org> Date: Thu, 25 Dec 2003 19:41:20 +0100 Message-ID: <59488.1072377680@critter.freebsd.dk> cc: Robert Watson cc: Ian Smith cc: soekris-tech@lists.soekris.com cc: timg@tpi.com cc: net@freebsd.org Subject: Re: [Soekris] Re: bridge with access on both interfaces X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Dec 2003 18:41:30 -0000 In message <20031225102549.A79161@xorpc.icir.org>, Luigi Rizzo writes: >If you have shared interrupts, and one of the interfaces is not up, you >end up doing a lot of useless calls to sis_stop(), which is terribly >expensive (it even includes a DELAY(1000) call). >At the very least, one should add a 'stopped' flag so that >sis_stop() is only called when necessary -- or possibly even >never at all. > >The second (minor) cause of performance loss are the calls >(not shown above) >to disable and re-enable the interrupts around the driver. These are >completely useless, yet cause some extra PCI transactions. I don't know if it is correct, but at the very least I have thought the same thoughts when I looked at the driver last, but I didn't get time to try out the idea... Somebody with some spare time should look at this... Poul-Henning -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.