Commit Graph

11 Commits

Author SHA1 Message Date
likewise
5acf6d24d5 Made compliant with API changes in CVS HEAD. 2004-05-05 18:47:21 +00:00
likewise
b4eaa5a113 Major stylo search/replace for "One space between keyword and opening bracket." 2003-05-01 13:27:52 +00:00
davidhaas
0a76b0f5ee Fixed various memory leaks caused by protection issues (and some other
issues).

Also some minor cosmetic changes.
2003-04-09 20:34:51 +00:00
davidhaas
b484f95228 In keeping with pbuf->ref always having the count of the number of pointers
to the particular buffer (and the last rewrite of pbuf_free), changed most
pbuf_ref_chain() calls back to pbuf_ref(). I think this was causing some pbuf
leaks.
2003-03-31 22:10:09 +00:00
davidhaas
a0d1650876 Since coldfire driver always queues buffers on the output dma queue, it must
always call pbuf_take() on each buffer chain.

Added initialization of netif->hwaddr_len.
2003-03-31 21:36:20 +00:00
davidhaas
0a46ef6af4 Fixed up and made work a PBUF_REF type. Most of the code uses this now
instead of PBUF_ROM. This addition allows support of copy-on-demand where the
lower layers can call pbuf_unref() which tests for any PBUF_REF buffers and
replaces them with PBUF_POOL buffers. This is now used
everywhere. pbuf_unref() is called in ARP queueing and in the coldfire
driver, which puts frames on a DMA queue and frees them later.

Along with this change pbuf_free() now goes through the entire chain of
buffers and tests all the ref counters, not just the first one. Generally now
pbuf_ref_chain() should be called and not pbuf_ref(). This change was made
because it is possible for the head of the pbuf chain to have a different
count than the payload pbuf which might have been passed by the application.

Coldfire ethernet driver also had some minor other updates and STATS was
changed to LWIP_STATS.
2003-03-19 22:16:31 +00:00
jani
0749599eab the contrib part of thread priority patch by floriZ.Also take out unused unix netifs from unixsim makefile for now 2003-03-19 15:28:31 +00:00
davidhaas
a9749edff8 Fixed build for coldfire after last debug.h and opt.h changes. 2003-02-25 21:46:24 +00:00
davidhaas
3cbe86d8a7 Added lightweight protection. In coldfire this is implemented by disabling
interrupts. In unixsim this is implemented by using a mutex. Uses #define
SYS_LIGHTWEIGHT_PROT to enable. It is enabled in coldfire by default, but
disabled in unixsim.

Fixes bug 2005 if you enable SYS_LIGHTWEIGHT_PROT. So the bug is closed.
2003-02-04 22:52:01 +00:00
davidhaas
51df05f58a ----------------------------------------------------------------------
Fixed the following bugs:
	2366: For coldfire port: pbuf is freed twice when no room on
	      output ring.
	2368: Coldfire port: buffer cleanup in 5272 driver causes
	      problems.
	2376: Can't have timeouts large enough
Committing in .

Modified Files:
	coldfire/sys_arch.c coldfire/netif/5272fec.c
----------------------------------------------------------------------
2003-02-04 14:45:22 +00:00
jani
2b84c23ea3 coldfire port.patch #872 from David Haas 2003-01-18 18:47:22 +00:00