Do not use pkfree_skb events for synchronization
authorBenjamin Poirier <benjamin.poirier@polymtl.ca>
Mon, 10 Aug 2009 20:13:40 +0000 (16:13 -0400)
committerBenjamin Poirier <benjamin.poirier@polymtl.ca>
Fri, 18 Dec 2009 19:03:24 +0000 (14:03 -0500)
commit85c9417b6ebc1e1cd25d479389c91926eb6948dc
treebe84b692810b7b4faf54209759a449754f88e5b3
parent70407e861d8430dbe06cc52e6fe4ed5c9cd0872a
Do not use pkfree_skb events for synchronization

Don't rely on events indicating when sk_buff structures are freed. After a
receive, we wait for another event indicating that this receive was for TCP
data. In the case where the data was not TCP, instead of keeping information
about the receive, we used to discard it when the skb was freed.  It turns out
that it faster (and simpler) not to look at pkfree_skb events and keep the
information around anyways. Since sk_buff's are allocated in a pool, the
information will get overwritten and the size of pendingRecv will not grow
infinitely.

Signed-off-by: Benjamin Poirier <benjamin.poirier@polymtl.ca>
lttv/lttv/sync/event_processing_lttv_common.c
lttv/lttv/sync/event_processing_lttv_common.h
lttv/lttv/sync/event_processing_lttv_standard.c
This page took 0.023301 seconds and 4 git commands to generate.