public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Rodel Miguel <rodelfmiguel@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] eth_rx implementation
Date: Sun, 6 Mar 2005 20:15:05 +0800	[thread overview]
Message-ID: <698a2fda05030604151688be50@mail.gmail.com> (raw)
In-Reply-To: <20050306092605.480CBC1510@atlas.denx.de>

Hi Wolfgang, 

I'm sorry I wasnt clear enough with my query.  

My implementation of eth_rx is somewhat like the ff:
 
- check if data is available
- if not, return 0
- call NetReceive(NetRxPackets[0], len)
- return len

Questions:

1. If network data is not available, eth_rx returns 0 and does not
call NetReceive(), how many times does NetworkLoop retry to send the
first data it requested?

2. If data is available, eth_rx calls NetReceive, however, if it is
not intended for the initial U-Boot request, how many times does does
NetworkLoop retry to send the first data it requested?

3. Do you need to enable a U-Boot configuration flag to support my
implementation of eth_rx?

I am currently having problems with my eth_send implementation, so
there are really no network requests done on the PHY layer yet,
however, the eth_rx can receive data, I just noticed that there's not
much error handlers on the higher layers.  The ARP requests are only
done twice, at least in PING command.

Thank you very much for your help.

Best Regards,
Rodel

On Sun, 06 Mar 2005 10:26:00 +0100, Wolfgang Denk <wd@denx.de> wrote:
> In message <698a2fda0503060044189b8b1c@mail.gmail.com> you wrote:
> >
> > I am having problems implementing my eth_rx function.  I have seen
> 
> And what exactly is your problem?
> 
> > from other implementations that eth_rx will return any packet that has
> > been received from the network, however, if there are no data to
> 
> Rigth.
> 
> > retrieve, i.e. NetReceive(NetRxPackets[0], 0),  the PING function
> > re-sends the ping request in at most two times.
> 
> Yes, but this is a different issue and  unrelated  to  the  implemen-
> tation of eth_rx.
> 
> > I have implemented a polling eth_rx function.  Of course there should
> > be no packet type checking on this level, however, is the network loop
> 
> OK.
> 
> > function checking if the packets for a specific network command is
> > satisfied, and if not, what does our network loop do?
> 
> I'm not exactly sure what you are asking here. Are there any problems
> with your eth_rx code  as  you  claimed  above,  or  did  you  modify
> anything in the NetLoop() function, or what?
> 
> Best regards,
> 
> Wolfgang Denk
> 
> --
> Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
> A witty saying proves nothing, but saying  something  pointless  gets
> people's attention.
>

  reply	other threads:[~2005-03-06 12:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-06  8:44 [U-Boot-Users] eth_rx implementation Rodel Miguel
2005-03-06  9:26 ` Wolfgang Denk
2005-03-06 12:15   ` Rodel Miguel [this message]
2005-03-06 12:49     ` Wolfgang Denk
2005-03-06 23:47       ` Rodel Miguel

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=698a2fda05030604151688be50@mail.gmail.com \
    --to=rodelfmiguel@gmail.com \
    --cc=u-boot@lists.denx.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox