Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Receiving io-net 'up' packets on specific interface: (2 Items)
   
Receiving io-net 'up' packets on specific interface  
I'm working on an io-net converter and I'm having trouble receiving
Ethernet  'up' packets. We have a dual-port Ethernet controller in our
system and I want to use the converter on only one of the controller's
ports (port 1). I have succeeded in getting 'down' traffic out the port
but I only receive 'up' traffic on endpoint 0 (not the one I want). I've
read the documentation for io_net_self_t->reg() but it seems very driver
oriented.  I see there is an endpoint argument for reg() but it's not
clear if the value pointed to by endpoint argument can be filled with  a
value in a converter. What is the correct way to register a converter to
only receive incoming packets from one of multiple endpoints in a
system? Thanks.

 

Mark

Re: Receiving io-net 'up' packets on specific interface  
On Thu, Mar 19, 2009 at 01:35:39PM -0400, Mark Dowdy wrote:
> I'm working on an io-net converter and I'm having trouble receiving
> Ethernet  'up' packets. We have a dual-port Ethernet controller in our
> system and I want to use the converter on only one of the controller's
> ports (port 1). I have succeeded in getting 'down' traffic out the port
> but I only receive 'up' traffic on endpoint 0 (not the one I want). I've
> read the documentation for io_net_self_t->reg() but it seems very driver
> oriented.  I see there is an endpoint argument for reg() but it's not
> clear if the value pointed to by endpoint argument can be filled with  a
> value in a converter. What is the correct way to register a converter to
> only receive incoming packets from one of multiple endpoints in a
> system? Thanks.

You can't receive packets from a particular up producer in
a converter, the best you could do is to put smarts in the
producer to not send it up in the first place.

I'm can't think of a reason off hand why your converter is
only seeing packets from endpoint 0.  Make sure the other
port is calling ex_tx_up() with the correct handle (first
arg) and that the two ports aren't sharing some structure
that should be per instance.

-seanb