lwIP - A Lightweight TCP/IP stack - Bugs: bug #29361, ip_frag has problems with...
You are not allowed to post comments on this tracker with your current authentication level.
bug #29361: ip_frag has problems with zero-copy DMA MACs
| Submitter: | Simon Goldschmidt <goldsimon> | ||
| Submitted: | Sat 27 Mar 2010 05:54:02 PM UTC | ||
| Category: | IPv4 | Severity: | 3 - Normal |
| Item Group: | Crash Error | Status: | Fixed |
| Privacy: | Public | Assigned to: | goldsimon |
| Open/Closed: | Closed | Planned Release: | None |
| lwIP version: | CVS Head | ||
|
Mon 21 Jun 2010 06:51:18 PM UTC, comment #4: |
Simon Goldschmidt <goldsimon> |
|
Mon 14 Jun 2010 08:32:03 PM UTC, comment #3: Since noone seems to bother, I'll implement this (and task #7896) by adding a new pbuf type that expects a 'free' function pointer right after the current struct pbuf (I'll add a struct definition for that). This way, bot (zero-copy-)drivers and the IP_FRAG code can allocate their own pbufs as they have to. |
Simon Goldschmidt <goldsimon> |
|
Fri 30 Apr 2010 07:13:44 PM UTC, comment #2: I think this has to be solved for 1.4.0 since it might involve API changes.
|
Simon Goldschmidt <goldsimon> |
|
Sun 28 Mar 2010 10:31:58 AM UTC, comment #1: This bug can currently be avoided only by setting IP_FRAG_USES_STATIC_BUF==0 and LWIP_NETIF_TX_SINGLE_PBUF==1, which creates a new PBUF_RAM for each fragment, which comes at the downside of a memcpy. |
Simon Goldschmidt <goldsimon> |
|
Sat 27 Mar 2010 05:54:02 PM UTC, original submission:
This is kind of a duplicate to bug #29271 (Application can't re-use pbufs), but it's in the stack, not in applications, and we need to remember to fix it.
|
Simon Goldschmidt <goldsimon> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Finally found the time to implement "custom" pbufs. I also set IP_FRAG_USES_STATIC_BUF=0 as default to be on the safe side (as =1 has problems with DMA-enabled MACs and lwIP should work OK with default settings).