Subject: =?iso-8859-1?Q?Re:_Re:_interprocessor_communication?=
To: None <tls@rek.tjls.com>
From: None <jerry@evasefor.com>
List: tech-kern
Date: 09/24/2005 06:54:01
drawing it right:
phy1-----cpu1========[logic]=========cpu2-------phy2
| mii mii |
ram ram
Simply put it's a router. There is an MII link for both directions
(receive and send).
If I write a NIC driver, I can understand how the input (phy1) is going
to work:
interupt, callback to device driver, put packet on ipqueue, process it.
But on the output, out of ip_output() is when I want to forward it to
cpu2, not back to the interface.
That's where I am wondering if there is a kernel interface for MII.
Hopefully my problem is a little bit more clear now.
Thanks a lot
Jerry
Thor Lancelot Simon <tls@rek.tjls.com> wrote on 09/24/2005, 05:04:12 AM:
> On Sat, Sep 24, 2005 at 02:28:01AM +0200, jerry@evasefor.com wrote:
> >
> > Good afternoon list,
> > I have a single board computer with 2 cpu each running their own netbsd
> > kernel:
> >
> > PHY--CPU1-----------logic---------CPU2---PHY
> > mii bus mii bus
> >
> > after I'm done processing a packet on CPU1 how can I address it
> > to CPU2?
>
> If you drew that diagram right, then I think you need to write a network
> interface driver that talks on the mii bus between the CPUs and the
> mysterious "logic". Once you do that, UDP should suffice.