> I don't think either of the above is correct. Note that once the message 
 > size reaches the threshold, mp should be the first one needs to be freed, 
 > the the previous message should be set as dsp->ds_tx_list_tail.

I'm not sure it really matters, but if you think so, then you can keep the
pointer to the previous message.  Just please don't unroll the first
iteration of the loop -- that really made the code ugly.

-- 
meem

Reply via email to