|

Tuesday July 13, 2004
a quick look at the bge interface
One of the more ubiquitous network interfaces on new Sun boxes is bge (Driver for Broadcom BCM570x), which in mind is quite a cute piece of kit. Bge comes on boxes such as the v20z, v440 etc, and is supported on a bunch of others.
Anyway, enough pitch, lets take a look at the nic.
kstat & bge
As is standard for all devices in solaris there is a multitude of kstat information available on bge. A quick count gives us
#kstat -m bge | sed -e "/^module/d" -e "/^name/d" -e "/^$/d" | wc -l
250
Quite a few, I'd guess more than you ever want to know about the interface to be honest. (If you are interested in looking at what this looks like, kstat -m bge output can be viewed here).
In general you are only going to be interested in the output of kstat -m bge -n bge{instance no}, so in the case of my desktop box this is instance 0.
# kstat -m bge -n bge0
module: bge instance: 0
name: bge0 class: net
align_errors 0
blocked 0
brdcstrcv 81101
brdcstxmt 33
carrier_errors 0
collisions 135695
crtime 134.109406862
defer_xmts 29952
duplex half
ex_collisions 3
fcs_errors 0
first_collisions 76907
ierrors 176
ifspeed 100000000
intr 962033
ipackets 924438
ipackets64 924438
macrcv_errors 0
macxmt_errors 0
media twpair
missed 0
multi_collisions 22003
multircv 236
multixmt 3
norcvbuf 0
noxmtbuf 0
obytes 403032503
obytes64 403032503
oerrors 0
oflo 0
opackets 884859
opackets64 884859
promisc off
rbytes 713392398
rbytes64 713392398
rcv_badinterp 0
runt_errors 0
snaptime 30973.478577695
sqe_errors 0
toolong_errors 0
tx_late_collisions 0
uflo 0
unknowns 6154
xmt_badinterp 0
xmtretry 0
These stats are actually exported from the generic lan driver (gld) which bge uses. gld's manpage contains most of the info that you might want to look at about what each of these options mean.
bge configuration
bge can be configured via ndd or by setting parameters in /platform/platform-name/kernel/drv/bge.conf. The driver is auto negotiating and self tuning, so the only things that you may need to fiddle around with are your link speed and mode, but even this is unlikely. The various options for this are documented in the bge manpage.
(2004-07-13 10:54:35.0)
Permalink
|