diff options
author | 2013-11-22 12:09:55 -0500 | |
---|---|---|
committer | 2013-12-08 16:57:38 -0800 | |
commit | 4d18e6eff81e1d4d81d0942d5b7e96904b3b32df (patch) | |
tree | a6c66c84189a50bff8b6b05a7187a8cda4b67cfc /include/linux/tty.h | |
parent | tty: Always handle NULL flag ptr (diff) | |
download | linux-4d18e6eff81e1d4d81d0942d5b7e96904b3b32df.tar.gz linux-4d18e6eff81e1d4d81d0942d5b7e96904b3b32df.tar.bz2 linux-4d18e6eff81e1d4d81d0942d5b7e96904b3b32df.zip |
tty: Enable configurable tty flip buffer limit
Allow driver to configure its maximum flip buffer memory
consumption/limit. This is necessary for very-high speed line
rates (in excess of 10MB/sec) because the flip buffers can
be saturated before the line discipline has a chance to
throttle the input.
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/tty.h')
-rw-r--r-- | include/linux/tty.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/tty.h b/include/linux/tty.h index 97d660ed70c1..2225745060d6 100644 --- a/include/linux/tty.h +++ b/include/linux/tty.h @@ -61,6 +61,7 @@ struct tty_bufhead { struct tty_buffer sentinel; struct llist_head free; /* Free queue head */ atomic_t memory_used; /* In-use buffers excluding free list */ + int mem_limit; struct tty_buffer *tail; /* Active buffer */ }; /* |