[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #3031] Implement a new fully pool-based pbuf implement
From: |
Simon Goldschmidt |
Subject: |
[lwip-devel] [bug #3031] Implement a new fully pool-based pbuf implementation. |
Date: |
Sat, 23 Jun 2007 13:29:24 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4 |
Follow-up Comment #13, bug #3031 (project lwip):
Some changes are necessary to make tcp work with chained pbufs:
- introcude a 'pbuf_count' counter in struct tcp_seg and increment it when
chaining 2 segments together for output using pbuf_cat (pbuf_cat(useg->p,
queue->p); in tcp_enqueue; around line 342).
- this counter is then used for 'pcb->snd_queuelen -= next->pbuf_count;'
instead of 'pcb->snd_queuelen -= pbuf_clen(next->p);' (pbuf_clen(next->p) had
the assumption of one pbuf per tcp_enqueue-call)
This is both compatible with chained PBUF_RAM pbufs _and_ faster than the
current version since pbuf_clen() doesn't have to be called. Of course at the
cost of one u8_t per segment.
Should I check this in or am I the only one interested in this 'bug' (I'd
prefer to call it a 'task' though)?
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?3031>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.nongnu.org/