public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2 0/6] Reduce code size of libnet
@ 2011-10-27 16:24 Simon Glass
  2011-10-27 16:24 ` [U-Boot] [PATCH v2 1/6] net: Hide more code behind CONFIG_CMD_TFTPPUT Simon Glass
                   ` (5 more replies)
  0 siblings, 6 replies; 21+ messages in thread
From: Simon Glass @ 2011-10-27 16:24 UTC (permalink / raw)
  To: u-boot

This patch series should change no functionality, but just reduce code size
slightly to what it was before the tftpput series.

Each patch is independent and each can be accepted or rejected as required.
Overall the effect is to reduce the code size to about 36 bytes lower
than it was before tftp when in on ARMv7 and PowerPC (IAD210) with my
toolchains.

Since this changes core net code, it needs to be examined carefully.

Changes in v2:
- Add net_transfer() fix
- Add patch with #ifdefs for cases which can only happen with tftpput
- Fix commit message to say memset() instead of memcpy()

Simon Glass (6):
  net: Hide more code behind CONFIG_CMD_TFTPPUT
  net: Make net_transfer() a static function
  net: Add more #ifdefs for tftpput to reduce code size
  net: Change for loop to memset()
  net: Be less picky about decoding the netretry env var
  net: Export auto_load, use it in rarp

 README        |    4 ++++
 include/net.h |    6 ++++++
 net/bootp.c   |   34 ++--------------------------------
 net/net.c     |   52 +++++++++++++++++++++++++++++++++++++++++++---------
 net/rarp.c    |   18 +-----------------
 net/tftp.c    |   19 +++++++++++++++----
 6 files changed, 71 insertions(+), 62 deletions(-)

-- 
1.7.3.1

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2011-10-27 23:22 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-27 16:24 [U-Boot] [PATCH v2 0/6] Reduce code size of libnet Simon Glass
2011-10-27 16:24 ` [U-Boot] [PATCH v2 1/6] net: Hide more code behind CONFIG_CMD_TFTPPUT Simon Glass
2011-10-27 21:13   ` Mike Frysinger
2011-10-27 21:38   ` Wolfgang Denk
2011-10-27 16:24 ` [U-Boot] [PATCH v2 2/6] net: Make net_transfer() a static function Simon Glass
2011-10-27 21:11   ` Mike Frysinger
2011-10-27 21:38   ` Wolfgang Denk
2011-10-27 16:24 ` [U-Boot] [PATCH v2 3/6] net: Add more #ifdefs for tftpput to reduce code size Simon Glass
2011-10-27 21:39   ` Wolfgang Denk
2011-10-27 16:24 ` [U-Boot] [PATCH v2 4/6] net: Change for loop to memset() Simon Glass
2011-10-27 21:09   ` Mike Frysinger
2011-10-27 21:39   ` Wolfgang Denk
2011-10-27 16:24 ` [U-Boot] [PATCH v2 5/6] net: Be less picky about decoding the netretry env var Simon Glass
2011-10-27 21:40   ` Wolfgang Denk
2011-10-27 21:45     ` Simon Glass
2011-10-27 16:24 ` [U-Boot] [PATCH v2 6/6] net: Export auto_load, use it in rarp Simon Glass
2011-10-27 21:12   ` Mike Frysinger
2011-10-27 22:24     ` Simon Glass
2011-10-27 22:40       ` Mike Frysinger
2011-10-27 23:09         ` Scott Wood
2011-10-27 23:22           ` Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox