From owner-freebsd-net@FreeBSD.ORG Thu Dec 8 21:53:10 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 7409B106566B for ; Thu, 8 Dec 2011 21:53:10 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 350EB8FC0A for ; Thu, 8 Dec 2011 21:53:09 +0000 (UTC) Received: by iafi7 with SMTP id i7so5220831iaf.13 for ; Thu, 08 Dec 2011 13:53:09 -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=9CAKE7ON85zxHCwZ1dI4rTZHJNKZDjSkJYqeeR6HVJs=; b=TXx/Z1iSthf60lF6+mDs8pt+w8uq3EbPlkdiSndyn7ssfiOic5riFMLeAwFLU721YI B18dnwLTljQjmy+l2fUxtHFK72BPBTBTcZ8hodo1hjIFWkOeeiGZRJxFmIEV/0TJqoLG Soai/HdbRz4nBB9wbp0uouYI1f5wf5gPdlh3E= Received: by 10.42.76.66 with SMTP id d2mr581257ick.7.1323381189430; Thu, 08 Dec 2011 13:53:09 -0800 (PST) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id e2sm24128549ibe.0.2011.12.08.13.53.06 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 08 Dec 2011 13:53:07 -0800 (PST) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Thu, 08 Dec 2011 13:52:56 -0800 From: YongHyeon PYUN Date: Thu, 8 Dec 2011 13:52:56 -0800 To: Sami Halabi Message-ID: <20111208215256.GB13605@michelle.cdnetworks.com> References: <20111205022730.GE1729@michelle.cdnetworks.com> <20111207005958.GE5825@michelle.cdnetworks.com> <20111207235810.GB9211@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: Thu, 08 Dec 2011 21:53:10 -0000 On Thu, Dec 08, 2011 at 11:56:51AM +0200, Sami Halabi wrote: > hi, > i can see what it does. > how do i compile the driver and load it instead of the running driver > without restarting? its a production server. There is no such way. You have to rebuild/install kernel and reboot. > > Thanks, > Sami > > On Thu, Dec 8, 2011 at 1:58 AM, YongHyeon PYUN wrote: > > > 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 > > > > > > -- > Sami Halabi > Information Systems Engineer > NMS Projects Expert