summaryrefslogtreecommitdiffstats
path: root/sys/dev/si
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1998-02-13 12:46:28 +0000
committerphk <phk@FreeBSD.org>1998-02-13 12:46:28 +0000
commit76528cc622637526fe2545d99fd21a2c6f39e9c4 (patch)
tree93a9b69fd7cbfbcfaa3a59dc4588bf3dfdb8dd8b /sys/dev/si
parent3a8117ec4ddcc05573335ac5f170bf00089f52da (diff)
downloadFreeBSD-src-76528cc622637526fe2545d99fd21a2c6f39e9c4.zip
FreeBSD-src-76528cc622637526fe2545d99fd21a2c6f39e9c4.tar.gz
Implement the spirit but not the letter of Terrys hot-char patch.
The differences Terrys patch and this patch are: * Remove a lot of un-needed comments. * Don't put l_hotchar at the front of stuct linesw, there is no need to. * Use the #defines for the hotchar in the SLIP and PPP line disciplines
Diffstat (limited to 'sys/dev/si')
-rw-r--r--sys/dev/si/si.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/sys/dev/si/si.c b/sys/dev/si/si.c
index 31404aa..e55e41f 100644
--- a/sys/dev/si/si.c
+++ b/sys/dev/si/si.c
@@ -30,7 +30,7 @@
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
* NO EVENT SHALL THE AUTHORS BE LIABLE.
*
- * $Id: si.c,v 1.64 1998/01/24 02:54:24 eivind Exp $
+ * $Id: si.c,v 1.65 1998/01/31 07:23:09 eivind Exp $
*/
#ifndef lint
@@ -2299,18 +2299,7 @@ si_disc_optim(tp, t, pp)
tp->t_state |= TS_CAN_BYPASS_L_RINT;
else
tp->t_state &= ~TS_CAN_BYPASS_L_RINT;
-
- /*
- * Prepare to reduce input latency for packet
- * discplines with a end of packet character.
- */
- if (tp->t_line == SLIPDISC)
- pp->sp_hotchar = 0xc0;
- else if (tp->t_line == PPPDISC)
- pp->sp_hotchar = 0x7e;
- else
- pp->sp_hotchar = 0;
-
+ pp->sp_hotchar = linesw[tp->t_line].l_hotchar;
DPRINT((pp, DBG_OPTIM, "bypass: %s, hotchar: %x\n",
(tp->t_state & TS_CAN_BYPASS_L_RINT) ? "on" : "off",
pp->sp_hotchar));
OpenPOWER on IntegriCloud