From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 2 04:50:28 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CBA1116A418 for ; Wed, 2 Jan 2008 04:50:28 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.177]) by mx1.freebsd.org (Postfix) with ESMTP id 996FC13C461 for ; Wed, 2 Jan 2008 04:50:28 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so9230547waf.3 for ; Tue, 01 Jan 2008 20:50:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; bh=nDpS+w9aw6AVzqBNwbzp20TbCiui242NtUzhEubhvSg=; b=JmpDiNRmFpMbr1ftcB4cRifCxEtNhY71asaimPsQhpCfeOggljaB73IZT8qrUN5rGvJHjpQS8ZTpRI1PZFROrBppB9aukigFP8fkhoW8P0B7JVvyUirW1DMg8hTl4VeSt8Uu9albgnOiIqjLCRsj6O2zKvKFfTa1MpO3zTKW2UQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=HHXpkFf/1Leg0lDHNzYFxG0wIE4jA7KEDgXXBQD21GF/WkHveW6UWpViLVqOyINPk7GAggIXClpY6ti/jtI7s/IBqIVA6soH7GeXky98hiwgjLby3zQQx42rEawt1O6Z/dAjOPKUpCStzwpPUl+CdZ6fzlqkIqQvXXN9giBiMTM= Received: by 10.115.109.1 with SMTP id l1mr15192160wam.136.1199247870847; Tue, 01 Jan 2008 20:24:30 -0800 (PST) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.google.com with ESMTPS id n37sm21734029wag.24.2008.01.01.20.24.25 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 01 Jan 2008 20:24:29 -0800 (PST) Received: from michelle.cdnetworks.co.kr (localhost.cdnetworks.co.kr [127.0.0.1]) by michelle.cdnetworks.co.kr (8.13.5/8.13.5) with ESMTP id m024MCY7028489 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 2 Jan 2008 13:22:12 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id m024MA0p028488; Wed, 2 Jan 2008 13:22:10 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Wed, 2 Jan 2008 13:22:10 +0900 From: Pyun YongHyeon To: Peter B Message-ID: <20080102042210.GC27551@cdnetworks.co.kr> References: <200801011822.m01IMZ9K017094@brother.ludd.ltu.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200801011822.m01IMZ9K017094@brother.ludd.ltu.se> User-Agent: Mutt/1.4.2.1i Cc: freebsd-hackers@freebsd.org Subject: Re: 6.2R Patch to allow broken frames X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jan 2008 04:50:28 -0000 On Tue, Jan 01, 2008 at 07:22:35PM +0100, Peter B wrote: > > I had to debug an phy+fpga setup and found this patch that makes tx(4) to > allow broken/runt frames and includes both mac and crc32 useful. > Maybe this could be a feature in the network drivers? (or some) > I don't consider this production code. Rather a demo/suggestion. > > The quick patch is to just do the changes to tx_if.c disregarding any IFF_* > flags. > Any information if this would interfere with normal operation would be welcome. > /P > Some ethernet controllers allow receving broken frames but I'm not sure whether it really helps on production box execept debugging aid. Receving broken frames would waste PCI bandwidth as well as systems resources as it would be dropped anyway in upper layer. I guess you can see increasing input errors(if_ierrors) in case of receving broken frames. Did the counter is not enough? -- Regards, Pyun YongHyeon