Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3845790pxu; Wed, 9 Dec 2020 01:58:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJyoCE5cjFqO6nnICTb5B4555Fx/Q85OCTN9u8BBZ4/RjnmZeL0T6arxpLR3zwaJWoCWAIua X-Received: by 2002:a17:906:9345:: with SMTP id p5mr1362547ejw.40.1607507926290; Wed, 09 Dec 2020 01:58:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607507926; cv=none; d=google.com; s=arc-20160816; b=OCol9wb/tSRh8X1+GmKY36iOnQNqXGf5bVYjHcKYSyF7DzzMTsqoMsq5djzdoYeuNQ NK3aaLbhOkX4EzE/5Kz4QQh/mZ6u+Z/IODrqgs6tSA+4TZ18TS1rGXFcLrGi85jJSD1F Z1SGiSRCig7qiaIBoqaBj/dpnzMcjQlMcis0ldxhcgPt/qOJKeTRCJaVthHgjwJOSGPC kGPimfZBX/6i0iI78XmL0vEZkWJvS327hVXm3MHHN5oVAv4YyssSkjx/HG+08zfJhAuw 9NE3AK70bOPhPPBvBGYf2aiQ2CDC7nXJjMDcfKZP2KCCmGyvJtkOVLnehZf+5pe2C955 Hlvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:references:in-reply-to :organization:subject:cc:to:from:date:content-transfer-encoding :mime-version; bh=i9pfobuD7l1tOtV2ksoaf088TanIAsGUZrQ/mgGa/Jo=; b=JrmZ8bejUkRKdgPKe8diWDIL4wkw+go9FZrKk548IhaBdH1LAI4E/jJTfE8mVixl/8 gXwVih17mbu7wJi6xx8ITsDzQHWyjdCgs5NsaQZ/jCTpAV0Jh2A6L0/IqpdLjtStnkpS eq/tkbD3X3X8WA9NXxd7uhEaLlbsVtOiZBPBviSniCcNlTaf8wqXkVkcz7BXvQF3mkyx ++LgkdLyY6HeHLmNJqMvA/fGEehblSalEveswkSy8J1TnNxa3VgAsRNvL//3m9L3pbh2 yVUj6AwNFNG2OQtXQNR3xNSexx7WXQoq6U4hJIlswQd4LxwHFKPBlASMtZtpxjAJLxwC SlWg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c23si553525edt.456.2020.12.09.01.58.23; Wed, 09 Dec 2020 01:58:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729299AbgLIJyN (ORCPT + 99 others); Wed, 9 Dec 2020 04:54:13 -0500 Received: from mxout70.expurgate.net ([194.37.255.70]:49681 "EHLO mxout70.expurgate.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728504AbgLIJyN (ORCPT ); Wed, 9 Dec 2020 04:54:13 -0500 Received: from [127.0.0.1] (helo=localhost) by relay.expurgate.net with smtp (Exim 4.90) (envelope-from ) id 1kmw90-0003Nz-RI; Wed, 09 Dec 2020 10:52:22 +0100 Received: from [195.243.126.94] (helo=securemail.tdt.de) by relay.expurgate.net with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90) (envelope-from ) id 1kmw8z-00068k-MN; Wed, 09 Dec 2020 10:52:21 +0100 Received: from securemail.tdt.de (localhost [127.0.0.1]) by securemail.tdt.de (Postfix) with ESMTP id CA71D240042; Wed, 9 Dec 2020 10:52:19 +0100 (CET) Received: from mail.dev.tdt.de (unknown [10.2.4.42]) by securemail.tdt.de (Postfix) with ESMTP id 54193240041; Wed, 9 Dec 2020 10:52:19 +0100 (CET) Received: from mail.dev.tdt.de (localhost [IPv6:::1]) by mail.dev.tdt.de (Postfix) with ESMTP id BDAE020897; Wed, 9 Dec 2020 10:52:18 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 09 Dec 2020 10:52:18 +0100 From: Martin Schiller To: Xie He Cc: "David S. Miller" , Jakub Kicinski , linux-x25@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next] net: x25: Fix handling of Restart Request and Restart Confirmation Organization: TDT AG In-Reply-To: <20201209081604.464084-1-xie.he.0141@gmail.com> References: <20201209081604.464084-1-xie.he.0141@gmail.com> Message-ID: <7aed2f12bd42013e2d975280a3242136@dev.tdt.de> X-Sender: ms@dev.tdt.de User-Agent: Roundcube Webmail/1.3.15 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.dev.tdt.de X-purgate-ID: 151534::1607507542-0000CF01-3214C8AB/0/0 X-purgate: clean X-purgate-type: clean Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-12-09 09:16, Xie He wrote: > 1. When the x25 module gets loaded, layer 2 may already be running and > connected. In this case, although we are in X25_LINK_STATE_0, we still > need to handle the Restart Request received, rather than ignore it. Hmm... I've never loaded the X.25 module after the interface is UP, but in this case we really have to fix it. > > 2. When we are in X25_LINK_STATE_2, we have already sent a Restart > Request > and is waiting for the Restart Confirmation with t20timer. t20timer > will > restart itself repeatedly forever so it will always be there, as long > as we > are in State 2. So we don't need to check x25_t20timer_pending again. Yeah, you're right, we can actually leave that out. Acked-by: Martin Schiller