lwIP - A Lightweight TCP/IP stack - Patches: patch #7658, Make pbuf_free() send PBUF_POOL...
You are not allowed to post comments on this tracker with your current authentication level.
patch #7658: Make pbuf_free() send PBUF_POOL pbufs to Ethernet driver directly.
| Submitter: | Timmy Brolin <brolin> | ||
| Submitted: | Wed 02 Nov 2011 08:18:55 PM UTC | ||
| Category: | pbufs | Priority: | 5 - Normal |
| Status: | Done | Privacy: | Public |
| Assigned to: | goldsimon | Open/Closed: | Closed |
| Planned Release: | None | ||
|
Fri 13 Feb 2015 08:56:38 PM UTC, comment #4: |
Simon Goldschmidt <goldsimon> |
|
Wed 04 Jul 2012 10:50:32 AM UTC, comment #3: Just found task #11472 which this patch is "sort-of" related to.
|
James Smith <rallysmith> |
|
Fri 01 Jun 2012 09:48:07 AM UTC, comment #2: I noticed this patch request, and that it has not been acted on for a while, and since we need (use) similar functionality I thought it prudent to add to this existing patch in the hope of reviving it, instead of creating a new (competing) patch.
|
James Smith <rallysmith> |
|
Sat 17 Dec 2011 09:22:38 PM UTC, comment #1: I like the idea, however we'd need a function that the netif driver can call to set the pbuf to "newly allocated" state - we wouldn't want that code to be spread accross netif drivers. |
Simon Goldschmidt <goldsimon> |
|
Wed 02 Nov 2011 08:18:55 PM UTC, original submission:
I have tested this method on my hardware and it works nicely.
|
Timmy Brolin <brolin> |
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.
Follow 5 latest changes.
| Date | Changed by | Updated Field | Previous Value | => | Replaced by |
|---|---|---|---|---|---|
| 2015-02-13 | goldsimon | Status | None | Done | |
| Assigned to | None | goldsimon | |||
| Open/Closed | Open | Closed | |||
| 2013-01-15 | goldsimon | Category | None | pbufs | |
| 2012-06-01 | rallysmith | Attached File | - | Added pbuf_7658.patch, #25968 |
Powered by Savane 3.12.
Corresponding source code

Done in a different way:
- LWIP_SUPPORT_CUSTOM_PBUF can be overridden if needed
- LWIP_HOOK_MEMP_AVAILABLE informs you of an empty pool getting an element back. This has a little more overhead than passing the pbuf to the driver directly but has the bonus of being more versatile.
If you really care for the overhead, use custom pbufs (it works, I have an IPv4 platform using them - custom PBUF_REF pbufs are used for RX)