[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: Gecko/20070515 Firefox/

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:


  Nachricht geschickt von/durch Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]