From: Mike Frysinger <vapier@gentoo.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] netloop: speed up NetLoop
Date: Tue, 24 Feb 2009 15:54:06 -0500 [thread overview]
Message-ID: <200902241554.07212.vapier@gentoo.org> (raw)
In-Reply-To: <49913D1C.6090905@denx.de>
On Tuesday 10 February 2009 03:38:52 Heiko Schocher wrote:
> +int NetInitLoop(proto_t protocol)
and some comments not really specific to your code ...
> + switch (protocol) {
> +#if defined(CONFIG_CMD_NFS)
> + case NFS:
> +#endif
> + case NETCONS:
> + case TFTP:
> + NetServerIP = getenv_IPaddr ("serverip");
> + break;
> +#if defined(CONFIG_CMD_PING)
> + case PING:
> + /* nothing */
> + break;
> +#endif
> +#if defined(CONFIG_CMD_SNTP)
> + case SNTP:
> + /* nothing */
> + break;
> +#endif
> + default:
> + break;
> + }
am i missing something, or are the PING/SNTP parts here completely useless
> + case BOOTP:
> + case RARP:
> + /*
> + * initialize our IP addr to 0 in order to accept ANY
> + * IP addr assigned to us by the BOOTP / RARP server
> + */
> + NetOurIP = 0;
> + NetServerIP = getenv_IPaddr ("serverip");
> + NetOurVLAN = getenv_VLAN("vlan"); /* VLANs must be read */
> + NetOurNativeVLAN = getenv_VLAN("nvlan");
> + case CDP:
> + NetOurVLAN = getenv_VLAN("vlan"); /* VLANs must be read */
> + NetOurNativeVLAN = getenv_VLAN("nvlan");
> + break;
looks to me like BOOTP/RARP are pointlessly reading/setting NetOurVLAN and
NetOurNativeVLAN twice ...
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20090224/bc67484c/attachment.pgp
next prev parent reply other threads:[~2009-02-24 20:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-10 8:38 [U-Boot] netloop: speed up NetLoop Heiko Schocher
2009-02-21 21:42 ` Wolfgang Denk
2009-02-23 7:53 ` Ben Warren
2009-02-24 20:45 ` Mike Frysinger
2009-02-25 7:46 ` Heiko Schocher
2009-02-24 20:54 ` Mike Frysinger [this message]
2009-02-25 7:46 ` Heiko Schocher
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=200902241554.07212.vapier@gentoo.org \
--to=vapier@gentoo.org \
--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