From owner-freebsd-net@FreeBSD.ORG Wed Dec 7 23:58:24 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 619921065670 for ; Wed, 7 Dec 2011 23:58:24 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 1D8628FC15 for ; Wed, 7 Dec 2011 23:58:23 +0000 (UTC) Received: by ggnp1 with SMTP id p1so1705594ggn.13 for ; Wed, 07 Dec 2011 15:58:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=YcA8jsvopf2+rybsUKZFdXOiYF/k6PhqGck7ZMHgNA4=; b=mGuP7KYUX9k0vsFHkzKYcN+zfgMlQRmJRF5k8M7iJIQie3f//9xDqVfnyNh512h3ui k0Vf2LRoaViuP23eLA5hsrHEdHDNFqj7Jt+A3P+wzTZLE3hHlZRXtzrS0+0xaSGZE49j V4vpVcqCgHWJZX80KxQxvG6Noe9Vv3/9Nt3Fk= Received: by 10.50.185.138 with SMTP id fc10mr1199484igc.33.1323302303324; Wed, 07 Dec 2011 15:58:23 -0800 (PST) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id ew6sm6635126igc.4.2011.12.07.15.58.20 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 07 Dec 2011 15:58:22 -0800 (PST) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Wed, 07 Dec 2011 15:58:10 -0800 From: YongHyeon PYUN Date: Wed, 7 Dec 2011 15:58:10 -0800 To: Sami Halabi Message-ID: <20111207235810.GB9211@michelle.cdnetworks.com> References: <20111205022730.GE1729@michelle.cdnetworks.com> <20111207005958.GE5825@michelle.cdnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: freebsd-net@freebsd.org Subject: Re: Problem on re0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Dec 2011 23:58:24 -0000 On Wed, Dec 07, 2011 at 09:55:22AM +0200, Sami Halabi wrote: > Hi, > > the patch failed, As i see /usr/src/dev/re/if_re.c has the following at > line 1943: > if (rxstat & RL_RDESC_STAT_RXERRSUM && !(total_len > 8191 && > (rxstat & RL_RDESC_STAT_ERRS) == RL_RDESC_STAT_GIANT)) { > ifp->if_ierrors++; Just past the code right here like the following. #if 1 printf("%#x ", rxstat); #endif It's a single line printf. :-) > /* > * If this is part of a multi-fragment packet, > * discard all the pieces. > */ > if (sc->rl_head != NULL) { > m_freem(sc->rl_head); > sc->rl_head = sc->rl_tail = NULL; > } > re_discard_rxbuf(sc, i); > continue; > } > > these are sources for 8.2-R+p4 > > Sami