public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Paul Fulghum <paulkf@microgate.com>
To: Kouji Toriatama <toriatama@inter7.jp>
Cc: linux-kernel@vger.kernel.org
Subject: Re: PPP with PCMCIA modem stalls on 2.6.10 or later
Date: Tue, 14 Feb 2006 11:12:39 -0600	[thread overview]
Message-ID: <1139937159.3189.4.camel@amdx2.microgate.com> (raw)
In-Reply-To: <20060215.005753.74732581.toriatama@inter7.jp>

On Wed, 2006-02-15 at 00:57 +0900, Kouji Toriatama wrote:
> Following is a status of ppp0 interface when the above wget
> command finished.  The count of RX errors, RX bytes and TX
> bytes has sometimes increased while stalling.  In kernel
> 2.6.9, the count of Rx errors was 0.
> -------------------------------------------------------------
> ppp0      Link encap:Point-to-Point Protocol  
>           inet addr:202.179.209.95  P-t-P:172.24.24.22  Mask:255.255.255.255
>           UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
>           RX packets:44 errors:18 dropped:0 overruns:0 frame:0
>           TX packets:50 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:3 
>           RX bytes:15992 (15.6 KiB)  TX bytes:2544 (2.4 KiB)

In 2.6.10, a new check for errors on received characters was added.

Try the patch below. It prevents the check from discarding
received frames, but outputs an error message to the syslog.

Run with the patch and return the results with
any syslog output containing the error message.

Thanks,
Paul

--- linux-2.6.15/drivers/net/ppp_async.c	2006-01-02 21:21:10.000000000 -0600
+++ b/drivers/net/ppp_async.c	2006-02-14 11:04:47.000000000 -0600
@@ -923,8 +923,9 @@ ppp_async_input(struct asyncppp *ap, con
 
 		c = buf[n];
 		if (flags != NULL && flags[n] != 0) {
-			ap->state |= SC_TOSS;
-		} else if (c == PPP_FLAG) {
+			printk("ppp_async:bad char c=%02X f=%02X\n", buf[n], flags[n]);
+		} 
+		if (c == PPP_FLAG) {
 			process_input_packet(ap);
 		} else if (c == PPP_ESCAPE) {
 			ap->state |= SC_ESCAPE;



  reply	other threads:[~2006-02-14 17:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-13 14:16 PPP with PCMCIA modem stalls on 2.6.10 or later Kouji Toriatama
2006-02-13 20:51 ` Paul Fulghum
2006-02-14 15:57   ` Kouji Toriatama
2006-02-14 17:12     ` Paul Fulghum [this message]
2006-02-15 13:11       ` Kouji Toriatama
2006-02-15 16:02         ` Paul Fulghum
2006-02-16 16:09           ` Kouji Toriatama
2006-02-16 16:24             ` Paul Fulghum

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1139937159.3189.4.camel@amdx2.microgate.com \
    --to=paulkf@microgate.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=toriatama@inter7.jp \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox