Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Dec 2011 13:52:56 -0800
From:      YongHyeon PYUN <pyunyh@gmail.com>
To:        Sami Halabi <sodynet1@gmail.com>
Cc:        freebsd-net@freebsd.org
Subject:   Re: Problem on re0
Message-ID:  <20111208215256.GB13605@michelle.cdnetworks.com>
In-Reply-To: <CAEW%2BogZKetpmwuCuyQo-g5DVZ4jCFM0L-mRApV9RTQ4S=Yi3hg@mail.gmail.com>
References:  <CAEW%2BogauicnjsNdMCBBtoYzOLKVQoxP92Lw9Q_YgYPAe96dS5g@mail.gmail.com> <20111205022730.GE1729@michelle.cdnetworks.com> <CAEW%2BogbPwPY8r=uHhpkkp9-_K_gNsAVzKhVmgWScAMsHt2SJKQ@mail.gmail.com> <20111207005958.GE5825@michelle.cdnetworks.com> <CAEW%2BogZ7wivLcNm8rpcDR-ekP7Z6iEBZ0DtExhg5NVGfho0Ckw@mail.gmail.com> <20111207235810.GB9211@michelle.cdnetworks.com> <CAEW%2BogZKetpmwuCuyQo-g5DVZ4jCFM0L-mRApV9RTQ4S=Yi3hg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <pyunyh@gmail.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111208215256.GB13605>