From owner-freebsd-net@FreeBSD.ORG Thu Dec 8 09:56:52 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 49D62106566B for ; Thu, 8 Dec 2011 09:56:52 +0000 (UTC) (envelope-from sodynet1@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 13CD08FC14 for ; Thu, 8 Dec 2011 09:56:51 +0000 (UTC) Received: by iafi7 with SMTP id i7so3916482iaf.13 for ; Thu, 08 Dec 2011 01:56:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ZP94oXHof5daXezy7GTeSmoMsbGGiXalXwz7+Ot6wqY=; b=gveXu0kq9OhCv5mEyrIlxHVI5th3lGZfGH35Ryn0tXfN/TPREPTPyrPTztP+ZrYzVY 3y3td1YUXoTsRkE51XFa+uwx5D8bEELuvk/XxwWe18jOA4fha3dN3Sge2UkkvfIULgZc kXobwZ2pBzEcyPoNhx7TOvEL54lIq1Cctdf5g= MIME-Version: 1.0 Received: by 10.42.173.71 with SMTP id q7mr2774734icz.43.1323338211413; Thu, 08 Dec 2011 01:56:51 -0800 (PST) Received: by 10.231.19.72 with HTTP; Thu, 8 Dec 2011 01:56:51 -0800 (PST) In-Reply-To: <20111207235810.GB9211@michelle.cdnetworks.com> References: <20111205022730.GE1729@michelle.cdnetworks.com> <20111207005958.GE5825@michelle.cdnetworks.com> <20111207235810.GB9211@michelle.cdnetworks.com> Date: Thu, 8 Dec 2011 11:56:51 +0200 Message-ID: From: Sami Halabi To: pyunyh@gmail.com Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-net@freebsd.org Subject: Re: Problem on re0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 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, 08 Dec 2011 09:56:52 -0000 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. 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