From owner-freebsd-net@FreeBSD.ORG Fri Dec 9 06:51:16 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 60CCF1065672 for ; Fri, 9 Dec 2011 06:51:16 +0000 (UTC) (envelope-from lacombar@gmail.com) Received: from mail-ww0-f42.google.com (mail-ww0-f42.google.com [74.125.82.42]) by mx1.freebsd.org (Postfix) with ESMTP id E73908FC08 for ; Fri, 9 Dec 2011 06:51:15 +0000 (UTC) Received: by wgbds13 with SMTP id ds13so2747150wgb.1 for ; Thu, 08 Dec 2011 22:51:15 -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:content-transfer-encoding; bh=T7a45YVAH+TlOsM/qp+JLH7bpUa00scU80lsOmx+3HM=; b=Ckv6ymXV9xVITyxZ1sPfcHnsvdSl2ktKOAs6E2k/HY6r1ZMVaCx+dK/SsMH+JS23OI ejc+hyHX7QrELBUVT/+guDfs/zkjN37yTQV1/LTtX3uFrokVvXzsIS6CGsMUhfEBE8RY A+408yZdVUaNnft2pxTy001QlYQPBZAklcpuE= MIME-Version: 1.0 Received: by 10.180.104.103 with SMTP id gd7mr9621419wib.17.1323413474970; Thu, 08 Dec 2011 22:51:14 -0800 (PST) Received: by 10.180.94.2 with HTTP; Thu, 8 Dec 2011 22:51:14 -0800 (PST) In-Reply-To: <20111208215256.GB13605@michelle.cdnetworks.com> References: <20111205022730.GE1729@michelle.cdnetworks.com> <20111207005958.GE5825@michelle.cdnetworks.com> <20111207235810.GB9211@michelle.cdnetworks.com> <20111208215256.GB13605@michelle.cdnetworks.com> Date: Fri, 9 Dec 2011 01:51:14 -0500 Message-ID: From: Arnaud Lacombe To: pyunyh@gmail.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-net@freebsd.org, Sami Halabi 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: Fri, 09 Dec 2011 06:51:16 -0000 Hi, On Thu, Dec 8, 2011 at 4:52 PM, YongHyeon PYUN wrote: > 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. =A0You have to rebuild/install kernel and > reboot. > How so ? AFAIK, you should be able to build the driver as a module, tell the bootloader to pre-load the module so that the built-in driver ends up being ignored. I did that some time ago with em(4). From memory, the steps should be: # From the source root % cd sys/modules/re % make % scp if_re.ko :/boot/kernel then on the target, add in `/boot/loader.conf': if_re_load=3D"YES" - Arnaud