CVSROOT: /cvs Module name: src Changes by: s...@cvs.openbsd.org 2016/01/14 02:44:08
Modified files: sys/kern : tty.c tty_pty.c sys/net : ppp_tty.c Log message: Increase buffer sizes and watermarks for tty and ppp Use 115200 the default speed for buffer sizing in ttymalloc(). A lot of devices call ttymalloc(0) so this affects quite a few of them. Increases the buffer size for 9600 < baud <= 115200 from 1k to 4k. Make ppp use the lo/hi watermarks from the tty layer which are adjusted according to speed + buffer size. The previous fixed values of 100 and 400 were way too small Make pty call ttymalloc() with baud == 1000000, which is the common value used in the tree for "fast". ok deraadt@