Skip to content
Snippets Groups Projects
  1. May 12, 2011
    • Luca Ceresoli's avatar
      net/net.c: cosmetic: fix brace issues · d3c65b01
      Luca Ceresoli authored
      
      This removes the following checkpatch issues:
       - WARNING: braces {} are not necessary for single statement blocks
       - WARNING: braces {} are not necessary for any arm of this statement
      
      Signed-off-by: default avatarLuca Ceresoli <luca.ceresoli@comelit.it>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Ben Warren <biggerbadderben@gmail.com>
      d3c65b01
    • Luca Ceresoli's avatar
      net/net.c: cosmetic: fix whitespace issues · 4f63acd0
      Luca Ceresoli authored
      
      This removes the following checkpatch issues:
       - ERROR: space prohibited after that open parenthesis '('
       - ERROR: space prohibited before that close parenthesis ')'
       - ERROR: space prohibited after that open square bracket '['
       - ERROR: space prohibited after that '&' (ctx:WxW)
       - ERROR: spaces required around that '=' (ctx:VxW)
       - ERROR: space required before the open parenthesis '('
       - ERROR: space required after that ',' (ctx:VxV)
       - ERROR: need consistent spacing around '+' (ctx:WxV)
       - WARNING: unnecessary whitespace before a quoted newline
       - WARNING: please, no spaces at the start of a line
       - WARNING: space prohibited between function name and open
         parenthesis '('
      
      Signed-off-by: default avatarLuca Ceresoli <luca.ceresoli@comelit.it>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Ben Warren <biggerbadderben@gmail.com>
      Cc: Mike Frysinger <vapier@gentoo.org>
      4f63acd0
    • Luca Ceresoli's avatar
      net/net.c: cosmetic: variable initializations · c586ce6e
      Luca Ceresoli authored
      
      This removes the following checkpatch errors:
       - ERROR: do not initialise globals to 0 or NULL
       - ERROR: spaces required around that '=' (ctx:VxV)
       - ERROR: that open brace { should be on the previous line
      
      Signed-off-by: default avatarLuca Ceresoli <luca.ceresoli@comelit.it>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Ben Warren <biggerbadderben@gmail.com>
      Cc: Mike Frysinger <vapier@gentoo.org>
      c586ce6e
    • Luca Ceresoli's avatar
      net/net.c: cosmetic: fix lines over 80 characters · 3e38e429
      Luca Ceresoli authored
      
      This removes the following checkpatch warning:
       - WARNING: line over 80 characters
      
      There are three such warnings left.
      
      The first is hard to fix with cosmetic-only changes without compromising code
      readability, so I'm leaving it as it is for now:
        WARNING: line over 80 characters
        #1537: FILE: net.c:1537:
        + [4 tabs] memcpy(((Ethernet_t *)NetArpWaitTxPacket)->et_dest, ...
      
      The other two cannot be fixed without splitting string literals, so it is
      preferred to keep them longer than 80 characters.
      
      Signed-off-by: default avatarLuca Ceresoli <luca.ceresoli@comelit.it>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Ben Warren <biggerbadderben@gmail.com>
      Cc: Mike Frysinger <vapier@gentoo.org>
      3e38e429
    • Luca Ceresoli's avatar
      NET: pass source IP address to packet handlers · 03eb129f
      Luca Ceresoli authored
      
      This is needed for the upcoming TFTP server implementation.
      
      This also simplifies PingHandler() and fixes rxhand_f documentation.
      
      Signed-off-by: default avatarLuca Ceresoli <luca.ceresoli@comelit.it>
      Cc: Wolfgang Denk <wd@denx.de>
      Acked-by: default avatarDetlev Zundel <dzu@denx.de>
      03eb129f
    • Simon Guinot's avatar
      netconsole: remove `serverip' check · 8b6bbe10
      Simon Guinot authored
      
      Netconsole use the environment variable `ncip' to configure the
      destination IP. `serverip' don't need to be defined.
      
      Signed-off-by: default avatarSimon Guinot <sguinot@lacie.com>
      8b6bbe10
  2. Apr 27, 2011
  3. Nov 28, 2010
  4. Oct 12, 2010
  5. Jun 21, 2010
  6. May 03, 2010
  7. Jan 17, 2010
    • Dirk Behme's avatar
      Make getenv_IPaddr() global · 6a45e384
      Dirk Behme authored
      
      There are boards out there that do not have network support in
      U-Boot (CONFIG_CMD_NET not set), but they do so in Linux. This
      makes it desirable to be able to port network configuration (like
      the IP address) to the Linux kernel.
      
      We should not make the passing of the IP configuration to Linux
      dependent on U-Boot features / settings.
      
      For this, make getenv_IPaddr() global. This fixes build error
      
      u-boot/lib_xxx/board.c:360: undefined reference to `getenv_IPaddr'
      
      on various architectures.
      
      Signed-off-by: default avatarDirk Behme <dirk.behme@googlemail.com>
      Acked-by: default avatarBen Warren <biggerbadderben@gmail.com>
      6a45e384
  8. Dec 14, 2009
  9. Nov 24, 2009
  10. Aug 25, 2009
    • Alessandro Rubini's avatar
      net: defragment IP packets · 5cfaa4e5
      Alessandro Rubini authored
      
      The defragmenting code is enabled by CONFIG_IP_DEFRAG; the code is
      useful for TFTP and NFS transfers.  The user can specify the maximum
      defragmented payload as CONFIG_NET_MAXDEFRAG (default 16k).
      Since NFS has a bigger per-packet overhead than TFTP, the static
      reassembly buffer can hold CONFIG_NET_MAXDEFRAG + the NFS overhead.
      
      The packet buffer is used as an array of "hole" structures, acting as
      a double-linked list. Each new fragment can split a hole in two,
      reduce a hole or fill a hole. No support is there for a fragment
      overlapping two diffrent holes (i.e., thre new fragment is across an
      already-received fragment).
      
      Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
      Signed-off-by: default avatarBen Warren <biggerbadderben@gmail.com>
      5cfaa4e5
  11. Aug 08, 2009
    • Robin Getz's avatar
      minor debug cleanups in ./net · 0ebf04c6
      Robin Getz authored
      
       Minor ./net cleanups - no functional changes
        - change #ifdef DEBUG printf(); #endif to just debug()
        - changed __FUNCTION__ to __func__
        - got rid of extra whitespace between function and opening brace
        - removed unnecessary braces on if statements
      
       gcc dead code elimination should make this functionally/size equivalent
       when DEBUG is not defined. (confirmed on Blackfin, with gcc 4.3.3).
      
      Signed-off-by: default avatarRobin Getz <rgetz@blackfin.uclinux.org>
      
      Signed-off-by: default avatarBen Warren <biggerbadderben@gmail.com>
      0ebf04c6
  12. Jul 23, 2009
  13. May 15, 2009
  14. Apr 20, 2009
    • Michael Zaidman's avatar
      NetLoop initialization bug · 3c172c4f
      Michael Zaidman authored
      
      The patch fixes the bug of partial initialization of global network
      parameters.
      
      Upon u-boot's start up the first ping command causes a failure of the
      consequent TFTP command. It happens in the recently added mechanism of
      the NetLoop initialization where initialization of global network
      parameters is separated in the NetInitLoop routine which is called per
      env_id change. Thus, ping request will initialize the network parameters
      necessary for ping operation only, afterwards the env_changed_id will be
      set to the env_id that will prevent all following initialization requests
      from other protocols.
      The problem is that the initialized by ping subset of network parameters
      is not sufficient for other protocols and particularly for TFTP which
      requires the NetServerIp also.
      
      Signed-off-by: default avatarMichael Zaidman <michael.zaidman@gmail.com>
      Signed-off-by: default avatarBen Warren <biggerbadderben@gmail.com>
      3c172c4f
  15. Mar 20, 2009
  16. Feb 23, 2009
  17. Jan 29, 2009
  18. Dec 06, 2008
  19. Dec 05, 2008
  20. Oct 18, 2008
  21. Jul 13, 2008
  22. Jul 10, 2008
  23. Jun 05, 2008
  24. May 20, 2008
    • Wolfgang Denk's avatar
      Big white-space cleanup. · 53677ef1
      Wolfgang Denk authored
      
      This commit gets rid of a huge amount of silly white-space issues.
      Especially, all sequences of SPACEs followed by TAB characters get
      removed (unless they appear in print statements).
      
      Also remove all embedded "vim:" and "vi:" statements which hide
      indentation problems.
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      53677ef1
  25. Apr 29, 2008
    • Guennadi Liakhovetski's avatar
      net: make ARP timeout configurable · 40cb90ee
      Guennadi Liakhovetski authored
      
      Currently the timeout waiting for an ARP reply is hard set to 5 seconds.
      On i.MX31ADS due to a hardware "strangeness" up to four first IP packets
      to the boards get lost, which typically are ARP replies. By configuring
      the timeout to a lower value we significantly improve the first network
      transfer time on this board. The timeout is specified in milliseconds,
      later internally it is converted to deciseconds, because it has to be
      converted to hardware ticks, and CFG_HZ ranges from 900 to 27000000 on
      different boards.
      
      Signed-off-by: default avatarGuennadi Liakhovetski <lg@denx.de>
      Signed-off-by: default avatarBen Warren <biggerbadderben@gmail.com>
      40cb90ee
  26. Jan 04, 2008
Loading