Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Nov 2011 13:12:40 -0800
From:      Maksim Yevmenkin <maksim.yevmenkin@gmail.com>
To:        freebsd-net <freebsd-net@freebsd.org>
Subject:   confused with if_baudrate
Message-ID:  <CAFPOs6oVZ-%2B8%2B37SoDQmSawAOYnZBAQbLstPaJ5i3wScd8WVeQ@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFPOs6oVZ-%2B8%2B37SoDQmSawAOYnZBAQbLstPaJ5i3wScd8WVeQ>