From owner-freebsd-net@FreeBSD.ORG Thu Nov 17 21:36:59 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 E44F31065676 for ; Thu, 17 Nov 2011 21:36:59 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id AB7398FC18 for ; Thu, 17 Nov 2011 21:36:59 +0000 (UTC) Received: by yenl11 with SMTP id l11so2433286yen.13 for ; Thu, 17 Nov 2011 13:36:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=UzAk3syWLzZPg0L1RCiucYzsPsgdkdZKB+IPVQqxGeU=; b=nIua0YkGiT8Wyy6FngDXiH6Cgcipyq5J7whg+fwwU6Ixe7LGjF9fVhs0GbcNfgEOIJ 6srEuZc/fk9vCxTcP8v2QM86jne5bE38XxAVcY9dTzi/VD8XIUuWEuv0G0zv6clklBdm R7t513kDUsIJsLqHr0bCOBeCQ6PpIXcL7R9W0= MIME-Version: 1.0 Received: by 10.236.161.4 with SMTP id v4mr378759yhk.89.1321564360545; Thu, 17 Nov 2011 13:12:40 -0800 (PST) Received: by 10.100.122.19 with HTTP; Thu, 17 Nov 2011 13:12:40 -0800 (PST) Date: Thu, 17 Nov 2011 13:12:40 -0800 Message-ID: From: Maksim Yevmenkin To: freebsd-net Content-Type: text/plain; charset=ISO-8859-1 Subject: 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: Thu, 17 Nov 2011 21:37:00 -0000 hello, i'm a little bit confused about if_baudrate. from system headers #define if_baudrate if_data.ifi_baudrate and u_long ifi_baudrate; /* linespeed */ so, i'm taking this as if_baudrate really should be an interface line speed in megabits per second. am i correct? if so, then it appears that at least some drivers lie about true line speed. for example from ixgbe(4) ifp->if_baudrate = 1000000000; it looks like its order of magnitude lower (i.e. 1 gigabit per second instead of 10 gigabits per second). am i missing something here or its just a typo? thanks, max