From owner-freebsd-net@FreeBSD.ORG Sat Nov 19 11:57:21 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 E77421065670 for ; Sat, 19 Nov 2011 11:57:21 +0000 (UTC) (envelope-from Hartmut.Brandt@dlr.de) Received: from mailhost.dlr.de (mailhost.dlr.de [129.247.252.33]) by mx1.freebsd.org (Postfix) with ESMTP id 55EB98FC0A for ; Sat, 19 Nov 2011 11:57:21 +0000 (UTC) Received: from DLREXHUB01.intra.dlr.de (172.21.152.130) by dlrexedge02.dlr.de (172.21.163.101) with Microsoft SMTP Server (TLS) id 14.1.339.1; Sat, 19 Nov 2011 12:46:05 +0100 Received: from DLREXMBX02.intra.dlr.de ([fe80::8cc6:b83e:ddc1:4e8b]) by dlrexhub01.intra.dlr.de ([::1]) with mapi id 14.01.0339.002; Sat, 19 Nov 2011 12:46:05 +0100 From: To: , Thread-Topic: confused with if_baudrate Thread-Index: AQHMpXEifT4z59Svcky9mLmJ56EfpZWxhxkAgAGFnACAAQkYPw== Date: Sat, 19 Nov 2011 11:46:05 +0000 Message-ID: <611243783F62AF48AFB07BC25FA4B1060BE5F4C7@dlrexmbx02.intra.dlr.de> References: , In-Reply-To: Accept-Language: en-US, de-DE Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.18.136.10] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: freebsd-net@freebsd.org Subject: RE: confused with if_baudrate 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: Sat, 19 Nov 2011 11:57:22 -0000 Hi,=0A= =0A= the 64-bit statistics counters are also likely to be wrong, if the polling = interval is too short (it is determined by the interface in the system with= the highest baudrate). This can be fixed by setting begemotIfPoll to an ap= propriate value in bsnmp, though.=0A= =0A= harti=0A= ________________________________________=0A= From: owner-freebsd-net@freebsd.org [owner-freebsd-net@freebsd.org] on beha= lf of Maksim Yevmenkin [maksim.yevmenkin@gmail.com]=0A= Sent: Friday, November 18, 2011 9:53 PM=0A= To: Juli Mallett=0A= Cc: freebsd-net=0A= Subject: Re: confused with if_baudrate=0A= =0A= On Thu, Nov 17, 2011 at 1:39 PM, Juli Mallett wrote:= =0A= > On Thu, Nov 17, 2011 at 13:12, Maksim Yevmenkin=0A= > wrote:=0A= >> hello,=0A= >>=0A= >> i'm a little bit confused about if_baudrate. from system headers=0A= >>=0A= >> #define if_baudrate if_data.ifi_baudrate=0A= >>=0A= >> and=0A= >>=0A= >> u_long ifi_baudrate; /* linespeed */=0A= >>=0A= >> so, i'm taking this as if_baudrate really should be an interface line=0A= >> speed in megabits per second. am i correct? if so, then it appears=0A= >> that at least some drivers lie about true line speed. for example from= =0A= >> ixgbe(4)=0A= >>=0A= >> ifp->if_baudrate =3D 1000000000;=0A= >>=0A= >> it looks like its order of magnitude lower (i.e. 1 gigabit per second=0A= >> instead of 10 gigabits per second). am i missing something here or its= =0A= >> just a typo?=0A= >=0A= > ixgbe's developer is excessively concerned about overflow on 32-bit=0A= > hosts (and unwilling to correct it under a preprocessor conditional),=0A= > unlike several of the other 10GbE driver developers, although I think=0A= > one 10GbE driver opts to omit if_baudrate entirely.=0A= =0A= well, this is unfortunate as if_baudrate reported as part of ifmib,=0A= so, when interface is monitored over snmp value of ifSpeed and=0A= HCOutSpeed can not be trusted :(=0A= =0A= thanks,=0A= max=0A= _______________________________________________=0A= freebsd-net@freebsd.org mailing list=0A= http://lists.freebsd.org/mailman/listinfo/freebsd-net=0A= To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"=0A= =0A=