Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Apr 1998 13:36:19 -0400 (EDT)
From:      "Larry S. Lile" <lile@stdio.com>
To:        Paul Norton <pnorton@ccnvhi.com>
Cc:        George Morgan <George_Morgan@BayNetworks.COM>, freebsd-tokenring@FreeBSD.ORG
Subject:   Re: code updated
Message-ID:  <Pine.SUN.3.91.980422132837.22857G-100000@heathers2.stdio.com>
In-Reply-To: <199804221535.IAA03736@grumpy.ccnvhi.com>

next in thread | previous in thread | raw e-mail | index | archive | help



On Wed, 22 Apr 1998, Paul Norton wrote:

> Larry S. Lile writes:
>  > 
>  > 
>  > On Wed, 22 Apr 1998, George Morgan wrote:
>  > 
>  > > > Do we have any concensus on what the default badrate should be?
>  > > 
>  > > For backward compatibility sake we should have 4 Mbps as the default, but 
>  > > since UNIX users usually consider themselves as power users, maybe we 
>  > > should set it to 16 Mbps :)
> 
> 99.99% of your users will be at 16Mbps. 
> 
>  > You are probably right, some of the older cards can only run at 4Mbps
>  > and wont tell you any different and 16Mbps cards usually autodetect
>  > and report correctly.
> 
> Older cards won't autodetect. They just beacon your ring if set
> incorrectly. All IBM shared-RAM adapters and compatibles will tell you
> the ring speed on either open or init (I can't remember offhand) so a
> default isn't used in these cases (these are set by dip switch or
> configuration program anyway.) Autodetecting adapters fail on open
> with a particular error code if inserting at the wrong speed, so you
> can reset the speed and retry the open. In these cases the default is
> the last speed it successfully opened at, stored in nonvolatile
> storage on the adapter. So I guess my question is what is the purpose
> of having a default hard-coded someplace in the kernel?

The purpose is for consistency, the ethernet and other drivers make sure
that they have a sane value available.  The added benefit it that if
someone forgets to set something they can be kept from crashing the 
kernel. 

These things are more just sanity numbers, what would happen if your
baudrate was 0?  What if you received a packet with 50000 bytes 
(because someone else stepped on you mbuf)?  Chances are if you
write your code correctly and dont do any thing incredibly stupid
you will never see these.  The attach routine will not touch your
baudrate or mtu if you have already set them.  It is just there as
a safety net.

Larry 
lile@stdio.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-tokenring" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SUN.3.91.980422132837.22857G-100000>