Re: PPP is not SMP safe in 2.2.X (fix)

From: Anton Ivanov (aivanov@eu.level3.net)
Date: Tue Feb 22 2000 - 05:38:11 EST


-----BEGIN PGP SIGNED MESSAGE-----

On 22-Feb-2000 Paul Mackerras wrote:
> Alan Cox wrote:
>
>> Getting a bad frame from the pty under high load is certainly legal anyway.
>
> Oh? How does this happen? I thought it was all flow-controlled properly
> and that the pty shouldn't drop any bytes. Surely the write on either side

Unfortunately I think that Alan is right on this one.

> should just return as many bytes as it can comfortably take at the time
> (or block, in the case of the master side)?

[snip]

Suggestion:

The BSD generic tunneling code. You have two devices and a process - a character
device, a network device and a process to handle the data. Traffic for the
network device gets copied to the chracter and read from there by the process
which does whatever is necessary, in your case rewrite the encaps and write to
the DSL. Stuff coming from the DSL is reparsed and written to the char device.
Than the char device injects it via its network counterpart into the networking
layer.

Known to work ;-)

Cheers ;-)

- ----------------------------------
Anton R. Ivanov
IP Engineer Level3 Communications
RIPE: ARI2-RIPE E-Mail: Anton Ivanov <aivanov@eu.level3.net>
@*** Gilb's Laws of Unreliability (No 4 of 5) ***
      Undetectable errors are infinite in variety, in contrast to
      detectable errors, which by definition are limited.

- ----------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.0 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iQEVAwUBOLJnEilWAw/bM84zAQHxDgf/UiF5WSOF5wr1MBk0mEQRicVZlMgNaEuh
uTOcsj+j/KGS6YoxGEysRnLQzOL0pwQSKNgnrfQlKpsAKmIfhIaPe1vPxr0DqsM0
7mk+/+lVnCOHSJ2VzboZKzIN6zGIuHL3O85U+z54YtvDWIJy/swsOHP26mW2lHUQ
9MKSZjVnXhTMqITLAxqAdKWIeQBpuRnvaXpBDwDtQJHhX0zCXVlwAybe1MriEOE+
1vomdhHEdj+4Ij4pXZCbzOtn+/4OfAvby/U6WM2t/RGoFOT/zEa0u1Q9HOufCPL4
SxYmKjEKjWld9QwBIBET9rXDQRTnpDqFK+T46peZZLc53Ij7f+qTjw==
=Htnx
-----END PGP SIGNATURE-----

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Feb 23 2000 - 21:00:30 EST