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

Joe Hershberger joe.hershberger at ni.com
Wed Mar 28 01:42:31 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: Remove redefinitions of net.h functions
  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: 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 CDPReceive
  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 +-
 board/Marvell/db64360/mv_eth.c       |    2 -
 board/Marvell/db64460/mv_eth.c       |    2 -
 board/esd/cpci750/mv_eth.c           |    2 -
 board/prodrive/p3mx/mv_eth.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                        |   93 +++--
 net/Makefile                         |    4 +
 net/arp.c                            |  213 ++++++++
 net/arp.h                            |   30 ++
 net/bootp.c                          |   87 +---
 net/bootp.h                          |   10 +-
 net/cdp.c                            |  374 ++++++++++++++
 net/cdp.h                            |   20 +
 net/dns.c                            |    2 +-
 net/net.c                            |  881 ++++------------------------------
 net/net_rand.c                       |   68 +++
 net/net_rand.h                       |   17 +
 net/nfs.c                            |    2 +-
 net/ping.c                           |  140 ++++++
 net/ping.h                           |   23 +
 net/rarp.c                           |   49 ++-
 net/rarp.h                           |    6 +-
 net/sntp.c                           |    2 +-
 net/tftp.c                           |    2 +-
 29 files changed, 1128 insertions(+), 932 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