public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "Piotr Zięcik" <kosmo@semihalf.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] eth_receive(): Do not assume that caller always wants full packet.
Date: Thu, 16 Jul 2009 15:32:48 +0200	[thread overview]
Message-ID: <200907161532.49054.kosmo@semihalf.com> (raw)
In-Reply-To: <20090716123959.F3E34832E416@gemini.denx.de>

Thursday 16 July 2009 14:39:59 Wolfgang Denk napisa?(a):
>
> But recv() is on another level. Here we are dealing with receiving raw
> ethernet frames.
>

I think that there is an analogy. Both function could be used for receiving 
_frames_. eth_receive() for ethernet frames and Linux recv() for UDP frames.

> > function. I do not see why we have to force application to prepare 1,5kB
> > buffer for received packets when for example it waits for ARP reply.
>
> Come on - what exactly is the extra effort you have to spend to
> prepare a bigger buffer?
>

Maybe I have used bad example. When application prepares a buffer
and chooses it's size to be less than interface MTU it means that application 
is not able to process larger packets. U-Boot should not expect that simple
application using API is able to handle every possible case (for example
9k packets on gigabyte ethernet).

-- 
Pozdrawiam.
Piotr Zi?cik

  reply	other threads:[~2009-07-16 13:32 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-14  8:08 [U-Boot] [PATCH] eth_receive(): Do not assume that caller always wants full packet Piotr Ziecik
2009-07-15 15:05 ` Mike Frysinger
2009-07-16  9:51   ` Piotr Zięcik
2009-07-16 12:39     ` Wolfgang Denk
2009-07-16 13:32       ` Piotr Zięcik [this message]
2009-07-16 15:08       ` Marcel Moolenaar
2009-07-16 15:39         ` Wolfgang Denk
2009-07-16 16:42           ` Marcel Moolenaar
2009-07-17 20:11             ` Wolfgang Denk
2009-07-16 17:32   ` Ben Warren

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=200907161532.49054.kosmo@semihalf.com \
    --to=kosmo@semihalf.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