[U-Boot] [PATCH v3 00/21] Network stack cosmetic improvements

Joe Hershberger joe.hershberger at ni.com
Wed May 23 19:57:56 CEST 2012


This patch-series reorganizes some of the net code to make it easier
to navigate and easier to leverage common functionality while
encapsulating private implementation details.  It also makes simple
readability clean-ups.

This is dependant on the "Network stack checkpatch.pl compliance"
patch-series.

This is a portion of the changes split from the series:
"Add link-local addressing support"

Joe Hershberger (21):
  net: Remove CMD_PING where there's no CMD_NET
  net: Move MAC-seeded rand out of bootp.c
  net: Move CDP out of net.c
  net: Encapsulate CDP packet identification
  net: Move ARP out of net.c
  net: Move PING out of net.c
  net: Move RARP receive logic out of net.c
  net: cosmetic: Un-typedef IP_t
  net: cosmetic: Split struct ip_udp_hdr into ip_hdr
  net: cosmetic: Un-typedef Ethernet_t
  net: cosmetic: Un-typedef VLAN_Ethernet_t
  net: cosmetic: Un-typedef ARP_t
  net: cosmetic: Un-typedef ICMP_t
  net: cosmetic: Rename parameter len to payload_len
  net: cosmetic: Add a more explicit comment about 802.2
  net: cosmetic: Rename "x" to "eth_proto"
  net: cosmetic: Rename CDPHandler to cdp_receive
  net: cosmetic: Rename OPT_SIZE to OPT_FIELD_SIZE
  net: cosmetic: Alphabetize includes in net.c
  net: cosmetic: Rename tmp to reply_ip_addr in arp.c
  net: cosmetic: Replace magic numbers in arp.c with constants

 arch/powerpc/cpu/mpc8260/ether_fcc.c |   17 +-
 arch/powerpc/cpu/mpc8xx/fec.c        |    2 +-
 drivers/net/netconsole.c             |    4 +-
 include/configs/am3517_crane.h       |    2 +-
 include/configs/am3517_evm.h         |    2 +-
 include/configs/origen.h             |    2 +-
 include/net.h                        |  110 +++--
 net/Makefile                         |    4 +
 net/arp.c                            |  213 ++++++++
 net/arp.h                            |   30 ++
 net/bootp.c                          |   83 +---
 net/bootp.h                          |   10 +-
 net/cdp.c                            |  374 ++++++++++++++
 net/cdp.h                            |   21 +
 net/dns.c                            |    2 +-
 net/net.c                            |  884 ++++------------------------------
 net/net_rand.c                       |   68 +++
 net/net_rand.h                       |   26 +
 net/nfs.c                            |    2 +-
 net/ping.c                           |  140 ++++++
 net/ping.h                           |   34 ++
 net/rarp.c                           |   55 ++-
 net/rarp.h                           |    7 +-
 net/sntp.c                           |    2 +-
 net/tftp.c                           |    2 +-
 25 files changed, 1166 insertions(+), 930 deletions(-)
 create mode 100644 net/arp.c
 create mode 100644 net/arp.h
 create mode 100644 net/cdp.c
 create mode 100644 net/cdp.h
 create mode 100644 net/net_rand.c
 create mode 100644 net/net_rand.h
 create mode 100644 net/ping.c
 create mode 100644 net/ping.h



More information about the U-Boot mailing list