Received: by 10.223.176.5 with SMTP id f5csp784297wra; Tue, 6 Feb 2018 07:19:41 -0800 (PST) X-Google-Smtp-Source: AH8x225BoqSN5deVzgxtDoyHnRmI1SQtkCBkGbL/gIxmoNaiPum4JqqPUTkqG7RlLSF0MJHE2k4Q X-Received: by 2002:a17:902:328:: with SMTP id 37-v6mr2827839pld.398.1517930381430; Tue, 06 Feb 2018 07:19:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517930381; cv=none; d=google.com; s=arc-20160816; b=whpQRAmYediuG4hSEQmDAeElr2c4tMDLsVsoKL8mcKDtaPzxHNmv/qUwJmIjbRVEyz qq/uyrksbD58YNUXs8J4FyZs4m86lg04PTy+HdkO7DiBss3h+EjwwFhljhlJJLArMtMX fsLyYL5LkU0Sn4WgM/TZxnJFlmBZGBriM79Qi8jImQqPovmJO+Xq0wxH0AZdrp+9toDu 9K66jx/ggWTSg38HU52O654TM5hunKbpFovCUdNFiIhDSGmJKubDe7sxCI3odiNoNEyA INP09ggYGVE+CmfjkS8tiq/XuwGOwc+PHwkV4rp5K5aSmh7g7xkwWOm7ynyMwp0yyD39 Er/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :subject:references:in-reply-to:message-id:cc:to:from:date :dkim-signature:arc-authentication-results; bh=fv3qk/n76WaAfe/YEvG85XfrYrzvhXbjtjBPm4jyC/M=; b=GOapPKRC56djwc7GR75mhmmrqDWyZpWBy66FqTFMcLMg2vFaSEiSEBQXFhNeD8lbHL rFBJY/3ykGYrj/S52PhprAj2yu1M8xtuKR1kSecN0uy7QtpJhWwtYf2EP8Gs2SNmbFNp niSslig/Iwmcm7xsBVDNRdm3zvgepMXjsanNsnN7JIisBpvdvr8sK8EU0Sa4WbGQZPbD D5qrHtzVPho/PAsVbBw/utNnNljJgSki7cKMmMVEKsd0m8Oj7SVQr+OPGc+6xnE1X5F3 Lh5JsVYG+SYt1h9EB+4o0oh3JrwUzDX0g3CSZQcB71UAXXiYuyc7qfS7EUpP9h39pL/4 RcmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yahoo.ca header.s=s2048 header.b=TeSWcJFS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=yahoo.ca Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e3si1291448pff.210.2018.02.06.07.19.26; Tue, 06 Feb 2018 07:19:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@yahoo.ca header.s=s2048 header.b=TeSWcJFS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=yahoo.ca Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752266AbeBFPSb (ORCPT + 99 others); Tue, 6 Feb 2018 10:18:31 -0500 Received: from sonic303-3.consmr.mail.bf2.yahoo.com ([74.6.131.42]:36534 "EHLO sonic303-3.consmr.mail.bf2.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752026AbeBFPSY (ORCPT ); Tue, 6 Feb 2018 10:18:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s2048; t=1517930303; bh=fv3qk/n76WaAfe/YEvG85XfrYrzvhXbjtjBPm4jyC/M=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From:Subject; b=TeSWcJFSSdHX74qNdpn1brH4+4JxNqPFRaylVjqoye8zDYLp+dpOCgKNYjGF8Wdl0P4XgUeesMEi+bI1vClh0/By1oFmzokajIvoG9fLvXatm/NtbAC+Spa8SVuqgaOodchH+E5YKh/+yG0FQCfpv+LMf+tXG1bG6mvjr/29LuURIrPOOtyyAQPSELaHwcVLCUqhMM0xVue1RXXRIkYrRwgcmaZl74FIOBOYdP2zACP1zrYRtKcu9u0SftsJ822haD3n1cAWO88jMdmEoy8YsYoU6/zn8JaXOv2mH3GCp30Z5MiV5M9GC50ZEXp5BAiFJK9OehPhIAr4lZB0bQbSxQ== X-YMail-OSG: Vfk05CAVM1lAp3ZCdyQrNJdevT0JacNcicfeIsIu98CrO1OsJ2wvWk.Fd_60Psb ALXUYyzTGtdGUyD7nklWcWRn1yLtKlBJIyA7FyORDaDFtuYWmDUOTduhYm9VRFiqy9Bu11WIuXpi Qh15LoT6FNYFTBJHW.KMNtiR00xRI8oHmH7pJQg66K6tuL11x3qFl3Jvhiega8KQyYYYYx2bEmDL D_s3LOUiFmHb4wT0ggv4lvzSj3gxbHUd6bIYqS6RvrR92CLndq8BW0.Ebx3OYHNxW_BLz55evP5E pAsbGZOVTPV8u30hjl0Sj0.b63dMv6uCGbL5F_4Q_P8NRkhsRODeJZjpcK2nNR235axrlqLItDHG 7F0TVXii6WmZvXjFaHWYyQFm1.ttAEUul3k0Igb6sG6TBuBDrwyHvAP6uc1mRBiVqhf6e5eZN.Y. oLrdwRHezxbAwunha3p9.rGVElc.B4HX4GrIin5QEed_BuYjkVVpLHh2BQdG0l.aygHyXCfc1Lh2 ocZ_RfxiLhdq_lUYY Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.bf2.yahoo.com with HTTP; Tue, 6 Feb 2018 15:18:23 +0000 Date: Tue, 6 Feb 2018 15:18:20 +0000 (UTC) From: Denis Du To: Krzysztof Halasa Cc: David Miller , , Message-ID: <431228126.4042690.1517930300853@mail.yahoo.com> In-Reply-To: References: <751079597.1884905.1516121905374.ref@mail.yahoo.com> <751079597.1884905.1516121905374@mail.yahoo.com> <20180122.152513.1108868799788445512.davem@davemloft.net> <998451043.3408644.1516727290310@mail.yahoo.com> Subject: Re: [PATCH] Carrier detect ok, don't turn off negotiation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Mailer: WebService/1.1.11316 YMailNorrin Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 Content-Length: 2072 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, David: How=C2=A0 do you think my patch? As you see, Krzysztof=C2=A0 think my patch is ok to be accepted. But if you have a better idea to fix it,I am glad to see it. Anyway, this i= ssue have to be fixed. Denis DU On Sunday, January 28, 2018, 9:34:15 AM EST, Krzysztof Halasa wrote:=20 Denis Du writes: >>From the above code, I can get that only Carrier have some change, it > will restart the protocol by hdlc_proto_start(dev);and thus the timer, > the previous timer expired due to protocol fail. > > If carrier keep no change by if (hdlc->carrier =3D=3D on) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0goto carrier_exit; /* no = change in DCD line level */It will do > nothing, not start any new protocol and thus the timer. Sorry about being late, just returned home and am trying to get all the backlogs under control. I remember the PPP standard is a bit cloudy about the possible issue, but the latter indeed exists (the PPP state machine was written directly to STD-51). There is related (more visible in practice, though we aren't affected) issue of "active" vs "passive" mode (hdlc_ppp.c is "active", and two "passives" wouldn't negotiate at all). Anyway the problem is real (though not very visible in practice, especially on relatively modern links rather than 300 or 1200 bps dialup connections) and should be fixed. Looking at the patch, my first impression is it makes the code differ from STD-51 a little bit. On the other hand, perhaps applying it as is and forgetting about the issue is the way to go. Ideally, I think the negotiation failure should end up (optionally, in addition to the current behavior) in some configurable sleep, then the negotiation should restart. If it's worth the effort at this point, I don't know. Perhaps I could look at this later, but no promises (this requires pulling on and setting up some legacy hardware). Anyway, since the patch is safe and can solve an existing problem: Acked-by: Krzysztof Halasa --=20 Krzysztof Halasa