From: Ben Greear <greearb@candelatech.com>
To: Bill Leckey <bleckey@tpg.com.au>
Cc: netdev@oss.sgi.com
Subject: Re: Net device queries.
Date: Sun, 10 Nov 2002 19:47:31 -0800 [thread overview]
Message-ID: <3DCF2853.4000908@candelatech.com> (raw)
In-Reply-To: 3DCE7B81.4070604@tpg.com.au
Bill Leckey wrote:
> I've been coding an ethernet driver for some new hardware we're
> developing and while it's working, there are a few issues I'm still
> unsure of. I couldn't find any archives for this list, so I'm
> suspecting I'm going to cover a lot of 'old ground'. Most of my info
> for coding ethernet drivers comes out of Rubini and Corbet's LInux
> Device Drivers, and what I've gleaned from kernel sources
>
> Firstly some background. With these cards I can have up to 25 point to
> point connections (to the same destination machine, or 25 destination
> machines). I have almost total control of what goes out on the wire, so
> I've chosen a minimal header that contains the type (passed in to
> hard_header) and a 16 bit field that contains misc other information.
> So, 32 bits, plus the data. The hardware provides things like length,
> and CRC checking.
>
> Currently I'm setting dev->hard_header_len to 4.
>
> The part that concerns me is what I set dev->type, dev->addr_len and
> dev->flags to.
>
> We don't technically have a hardware address so I set dev->addr_len to 0.
If you want to look like ethernet, it seems you would want at least a fake
MAC. To me, it also sounds like you may want up to 25 net_devices, since
you have that many logical point-to-point connections. (Similar to the
way VLAN works)
>
> I set dev->type to ARPHRD_VOID, simply because I'm not sure what the
> consequences of setting it to anything else are.
Maybe you could get a serial number out of your device and then hash it
into MAC addresses? The user can always change these with ifconfig or 'ip'
after your device initializes anyway...
--
Ben Greear <greearb@candelatech.com> <Ben_Greear AT excite.com>
President of Candela Technologies Inc http://www.candelatech.com
ScryMUD: http://scry.wanfear.com http://scry.wanfear.com/~greear
next prev parent reply other threads:[~2002-11-11 3:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-10 15:30 Net device queries Bill Leckey
2002-11-11 3:47 ` Ben Greear [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-11-06 10:11 Bill Leckey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3DCF2853.4000908@candelatech.com \
--to=greearb@candelatech.com \
--cc=bleckey@tpg.com.au \
--cc=netdev@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.