Re: [PATCH] hso.c against 2.6.27-rc5 throttle/unthrottle to prevent loss of serial data

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Denis Joseph Barrow
Date: Friday, September 5, 2008 - 6:30 am

Hi Alan,
You are very close to understanding me.
If my understanding of the n_tty.c code is correct it will
only start throttling when there is TTY_THRESHOLD_THROTTLE
i.e. 128 bytes left in the n_tty ring buffer this is a very low limit
for my driver. This means
that if I try to do a tty_flip_buffer_push of
of a tty buffer larger than 128 bytes when the threshold
is reached I will lose data. My urb buffers are 4k in
size 2 buffers of this size up to the tty layer in a row 
quickly I believe I'll lose data in the n_tty layer.

Alan Cox wrote:


-- 
best regards,
D.J. Barrow
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] hso.c against 2.6.27-rc5 throttle/unthrottle to p ..., Denis Joseph Barrow, (Fri Sep 5, 2:35 am)
Re: [PATCH] hso.c against 2.6.27-rc5 throttle/unthrottle ..., Denis Joseph Barrow, (Fri Sep 5, 6:30 am)
Re: [PATCH] hso.c against 2.6.27-rc5 throttle/unthrottle ..., Denis Joseph Barrow, (Fri Sep 5, 7:06 am)