Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1416244pxb; Mon, 22 Feb 2021 00:59:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJxWxvAAix8wvViMZl0bcO3Dav9xWHV+BhE6NxNVaNdnvBes444Cgn5rfTk3dYrBoBLpRx0M X-Received: by 2002:aa7:c54b:: with SMTP id s11mr5504876edr.82.1613984354757; Mon, 22 Feb 2021 00:59:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613984354; cv=none; d=google.com; s=arc-20160816; b=MkJSj6yC0YIMc7dD7Sh0pUENceFSAAAwkSevJTAoIwv1YA3GPNEiFmQtyNJ4Qh0fRn +eJf9IZtfK3ifM6l08YvCtTeO34k+aX/Y1QePpx3bO3QuulD4qtMlKhYcTPTpYm21KuC 6I2kJcoJ87UgtU4FeRNH0OpRTpJRmNcHp3Tqb+kPRAamHyCuoQMVAc1WDbNvZDk1A2at FHgjeHvgvTH0dz9oWt0I/i2YsgAgZAYAeJsCj4m/02OIXbreVuvvrKKmTFJmGjjII40J J6q+xHY7+N2ZP65Uk8Ro/jTORdM78qJ4BZIuElS1G/YN6mjbLhISA92cdFhZjqA+jAjf HUqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=asA/ItuewNg3IaZAJfPBjAM64gPw1m4pIHql4x7Kuio=; b=MzOARUPJa8bZF8TYZ+w2dljRCKLqcOgNSlwrF4b0993+FScixrMew7jmhmTuuJF2b+ 0mGvRjW4qhAOIF0yBK0ItxghjmvOqllCij7EpbFT2bT9WXCyeuxnTxIGwl7C8J8atgnf DzHwMzAbBR7tru0jNkCn/tab3yDRTLUYpXQ0Qe0r4TYrqW/VpxxMltsrtrX7/SwJ/QaW j/QF8V4tK6T96eXS2Rw5uW3zH2otNl3wmE5xSO2omtFdZ9zQEomWn+AhdYeUSx2a4HF2 t4UvLNysGl/geyqOws9JLTlXzjS5E6V17XyuCZc9K2badRN+xnpACuM86r2+3SeeSBvi lcWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IWTV9+HG; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f8si11548173ejf.3.2021.02.22.00.58.52; Mon, 22 Feb 2021 00:59:14 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IWTV9+HG; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229989AbhBVI54 (ORCPT + 99 others); Mon, 22 Feb 2021 03:57:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229953AbhBVI5r (ORCPT ); Mon, 22 Feb 2021 03:57:47 -0500 Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54B93C061574; Mon, 22 Feb 2021 00:57:07 -0800 (PST) Received: by mail-pg1-x534.google.com with SMTP id n10so9815028pgl.10; Mon, 22 Feb 2021 00:57:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=asA/ItuewNg3IaZAJfPBjAM64gPw1m4pIHql4x7Kuio=; b=IWTV9+HGz0K2zdIVzHNUcTh6DWCQ3j1Wny8OfWn7zXAKSXh9LTxGlBLqxgYe/nQHQT ugNg+KPj7JloYQIiJjOsC1THr2+DX8oPRU1FrBdE4LPsGYVpr733MCBBw0pR0TcjSKbG Qv1EooV7Nl0lE+srKk6wuEo3ctOfOvubtJyU0pK+4iz4ESjLttuijI3t2w8OxQgzyyVC EMwgaPxr6umSDdLr0oq8bOZpGv+X5mrqaXk1hDynpBR5xQrPw0P2JrpEjuVG26HIK7Yb XK0kB3RTIv3MHZELpzMusTykJGAbnJC3h5+LOVkvWZh/ZBlXminZ8dbH4A/SwjYxAqIE 2f/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=asA/ItuewNg3IaZAJfPBjAM64gPw1m4pIHql4x7Kuio=; b=q6JTdKl8Txx4IttCRVbeEVeoz6Eq9xE7LOkNrQJUFwi12TbjAw3Hw8uLAgFkOL+JOV 4kf0DikrylLy/BRHCNV0laRqzsBey8mUeUKP3O0s3WjDi3l45pA1oAysXpOe6ebcrcu1 vfWRkXjM6otMXvdSk+TfZBCA1h1WaXZxkLpNsiNL7gtF4CWHM0WoDlkgdF36M+boxUXU yd4anCMre7a2xt3pAzo/rbWzv2jcRc8a4QCS9g01EvFMMI7nSneuy8b4sppajUkiJ5AK Lm7D7nWWY9Ot8uz33As/z0ncJWsdaJjz9mEXkOkcdNBgVZB+8zMMEBK+P8/1KaET+sE9 EqTw== X-Gm-Message-State: AOAM530LHZDT5PqKtfKfe62cWpL6dFOD10rjLEHzv8xyAzxSrGjxGDR3 55xsc/BqEloktnIo7dPg6vWEAk6UEC+TuZxwfvM= X-Received: by 2002:aa7:9ad2:0:b029:1e5:f0e6:2fcd with SMTP id x18-20020aa79ad20000b02901e5f0e62fcdmr21221070pfp.4.1613984226945; Mon, 22 Feb 2021 00:57:06 -0800 (PST) MIME-Version: 1.0 References: <20210216201813.60394-1-xie.he.0141@gmail.com> <20210219103948.6644e61f@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <906d8114f1965965749f1890680f2547@dev.tdt.de> In-Reply-To: <906d8114f1965965749f1890680f2547@dev.tdt.de> From: Xie He Date: Mon, 22 Feb 2021 00:56:56 -0800 Message-ID: Subject: Re: [PATCH net-next RFC v4] net: hdlc_x25: Queue outgoing LAPB frames To: Martin Schiller Cc: Jakub Kicinski , Leon Romanovsky , "David S. Miller" , Linux X25 , Linux Kernel Network Developers , LKML , Krzysztof Halasa , Jonathan Corbet , linux-doc@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 21, 2021 at 11:14 PM Martin Schiller wrote: > > 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. This problem becomes very serious when we use AF_PACKET sockets, because the majority of frames would be dropped by the hardware driver, which significantly impacts transmission speed. What I am really doing is to enable adequate support for AF_PACKET sockets, allowing users to use the bare (raw) LAPB protocol. If we take this into consideration, this problem is no longer just a theoretical problem, but a real practical issue. If we don't want to break backward compatibility, there is another option: We can create a new API for the HDLC subsystem for stopping/restarting the TX queue, and replace all HDLC hardware drivers' netif_stop_queue and netif_wake_queue calls with calls to this new API. This new API would then call hdlc_x25 to stop/restart its internal queue. But this option would require modifying all HDLC hardware drivers' code, and frankly, not all HDLC hardware drivers' developers care about running X.25 protocols on their hardware. So this would cause both hardware driver instabilities and confusion for hardware driver developers.