From owner-svn-src-head@FreeBSD.ORG Thu Oct 18 09:57:57 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 37BDE24A; Thu, 18 Oct 2012 09:57:57 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 1E3B38FC08; Thu, 18 Oct 2012 09:57:57 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q9I9vuZB007966; Thu, 18 Oct 2012 09:57:56 GMT (envelope-from glebius@svn.freebsd.org) Received: (from glebius@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q9I9vuBh007964; Thu, 18 Oct 2012 09:57:56 GMT (envelope-from glebius@svn.freebsd.org) Message-Id: <201210180957.q9I9vuBh007964@svn.freebsd.org> From: Gleb Smirnoff Date: Thu, 18 Oct 2012 09:57:56 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r241677 - head/sys/net X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Oct 2012 09:57:57 -0000 Author: glebius Date: Thu Oct 18 09:57:56 2012 New Revision: 241677 URL: http://svn.freebsd.org/changeset/base/241677 Log: Utilize new macro to initialize if_baudrate(). Modified: head/sys/net/if_epair.c Modified: head/sys/net/if_epair.c ============================================================================== --- head/sys/net/if_epair.c Thu Oct 18 09:56:14 2012 (r241676) +++ head/sys/net/if_epair.c Thu Oct 18 09:57:56 2012 (r241677) @@ -823,7 +823,7 @@ epair_clone_create(struct if_clone *ifc, sca->if_qflush = ifp->if_qflush; ifp->if_qflush = epair_qflush; ifp->if_transmit = epair_transmit; - ifp->if_baudrate = IF_Gbps(10UL); /* arbitrary maximum */ + if_initbaudrate(ifp, IF_Gbps(10)); /* arbitrary maximum */ /* Swap the name and finish initialization of interface b. */ *dp = 'b'; @@ -849,7 +849,7 @@ epair_clone_create(struct if_clone *ifc, scb->if_qflush = ifp->if_qflush; ifp->if_qflush = epair_qflush; ifp->if_transmit = epair_transmit; - ifp->if_baudrate = IF_Gbps(10UL); /* arbitrary maximum */ + if_initbaudrate(ifp, IF_Gbps(10)); /* arbitrary maximum */ /* * Restore name to a as the ifp for this will go into the