Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1373641pxb; Sun, 21 Feb 2021 23:18:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJwhMIgWHCOKsi7/iEVZgfuH+WaIL7FMulFYlSVf4euwf8Gl2fi1c5MZrAmilHaZhjotkfOa X-Received: by 2002:a17:906:d71:: with SMTP id s17mr20293735ejh.126.1613978330081; Sun, 21 Feb 2021 23:18:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613978330; cv=none; d=google.com; s=arc-20160816; b=Gb94GTUmZ6ZWKHNSuIIA4lLp8UNNk97deny+0y8zvbownS9I7/+m3kOVPHa/4cDPYc VioWlgMXKxj9odS7w8bLjYdn0hyFSLHnHMpTjGAsJafYvjhzU6fkxdrLSCbImZxRm+gl lvuVR9z/hidZP7qZ6p9qP00qTG8tk9zctwxIkxQ6CFRym+sGUtvIoSaQOvGsX11LKhCy HU3+aXHXLewThuaORyYHjIHCG7iFpE7fYvgKPVlkolkL+l7650tJIoQO5/LZOtfYnl4X j/r6NfykqzpgnnJ3VSBzul1k6+SGIk4z4CD7GuyxeK88yyTgbV1defsh0ONk9x7+XLU3 nExA== 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=UIl/pKC9TO7jDbQmnrHTgut99GHz1gdHa6e5MFrCKrE=; b=0Q0I1JBGy0RtzUrvnrAMfC2DNBwgDkfF+wKz/MWUAQk0vJCLdO2vevCmE2A4hqJ9B/ Sgp8xH3ko77Cz/E+b5DZCoz7Y6aMDuKGcg8nqf8pezo1DdxpcSZnpfIps5JIXoan8/9U gUHyyCFAkw6c+ZOFJYeBdaW1JOK4frC0dUBKrDzd0gMVtgyEyVM0iWk0NaCPv7yUdg3Q YmGhFFfvzVlo59njWGQwc+X/exPhFc8IkhjhAnyUq7/AfppuujU8DxyM0KlkBXK4S+o/ KBOfl97DXqCoVyLYGc7ZyaMzJnmzG5uXmNqPkE1kdTtk7R18QhxU67QV2yOdJkZoBsrK X5Lw== 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 ce27si12382432edb.213.2021.02.21.23.18.28; Sun, 21 Feb 2021 23:18:50 -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 S230044AbhBVHQM (ORCPT + 99 others); Mon, 22 Feb 2021 02:16:12 -0500 Received: from mxout70.expurgate.net ([194.37.255.70]:50405 "EHLO mxout70.expurgate.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229947AbhBVHQK (ORCPT ); Mon, 22 Feb 2021 02:16:10 -0500 Received: from [127.0.0.1] (helo=localhost) by relay.expurgate.net with smtp (Exim 4.90) (envelope-from ) id 1lE5Q3-0003et-6j; Mon, 22 Feb 2021 08:14:11 +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 1lE5Q1-0002d4-RN; Mon, 22 Feb 2021 08:14:09 +0100 Received: from securemail.tdt.de (localhost [127.0.0.1]) by securemail.tdt.de (Postfix) with ESMTP id B30F1240042; Mon, 22 Feb 2021 08:14:08 +0100 (CET) Received: from mail.dev.tdt.de (unknown [10.2.4.42]) by securemail.tdt.de (Postfix) with ESMTP id 0FA5E240041; Mon, 22 Feb 2021 08:14:08 +0100 (CET) Received: from mail.dev.tdt.de (localhost [IPv6:::1]) by mail.dev.tdt.de (Postfix) with ESMTP id 84BBF20046; Mon, 22 Feb 2021 08:14:07 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 22 Feb 2021 08:14:07 +0100 From: Martin Schiller To: Xie He Cc: Jakub Kicinski , Leon Romanovsky , "David S. Miller" , Linux X25 , Linux Kernel Network Developers , LKML , Krzysztof Halasa , Jonathan Corbet , linux-doc@vger.kernel.org Subject: Re: [PATCH net-next RFC v4] net: hdlc_x25: Queue outgoing LAPB frames Organization: TDT AG In-Reply-To: References: <20210216201813.60394-1-xie.he.0141@gmail.com> <20210219103948.6644e61f@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> Message-ID: <906d8114f1965965749f1890680f2547@dev.tdt.de> X-Sender: ms@dev.tdt.de User-Agent: Roundcube Webmail/1.3.16 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED 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: clean X-purgate-type: clean X-purgate-ID: 151534::1613978050-00007142-A947A7D8/0/0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-02-19 21:28, Xie He wrote: > On Fri, Feb 19, 2021 at 10:39 AM Jakub Kicinski > wrote: >> >> Not entirely sure what the argument is about but adding constants >> would >> certainly help. > > Leon wants me to replace this: > > dev->needed_headroom = 3 - 1; > > with this: > > /* 2 is the result of 3 - 1 */ > dev->needed_headroom = 2; > > But I don't feel his way is better than my way. > >> More fundamentally IDK if we can make such a fundamental change here. >> When users upgrade from older kernel are all their scripts going to >> work the same? Won't they have to bring the new netdev up? > > Yes, this patch will break backward compatibility. Users with old > scripts will find them no longer working. > > However, it's hard for me to find a better way to solve the problem > described in the commit message. > > So I sent this as an RFC to see what people think about this. (Martin > Schiller seems to be OK with this.) Well, I said I would like to test it. I'm not really happy with this change because it breaks compatibility. We then suddenly have 2 interfaces; the X.25 routings are to be set via the "new" hdlc_x25 interfaces instead of the hdlc interfaces. I currently just don't have a nicer solution to fix this queueing problem either. On the other hand, since the many years we have been using the current state, I have never noticed any problems with discarded frames. So it might be more a theoretical problem than a practical one. > > I think users who don't use scripts can adapt quickly and users who > use scripts can also trivally fix their scripts. > > Actually many existing commits in the kernel also (more or less) cause > some user-visible changes. But I admit this patch is a really big > change.