Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1486719pxb; Thu, 4 Mar 2021 12:36:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJwkTL0oYF9b3Gt5kcli4re7U8+w2mvv0UT8gGZIiVQ1p5G7nUg6zOYR78Bp9Rj5IkrozFT1 X-Received: by 2002:aa7:c4d1:: with SMTP id p17mr6506344edr.387.1614890189452; Thu, 04 Mar 2021 12:36:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614890189; cv=none; d=google.com; s=arc-20160816; b=LOfGGwPnOZQzNk5SH2Q8XKHZkp12W2FY9/9WOH/j+VOkQ6FRLY+LrbIpQeq052T7Jx NKSCNwCGlvKvNQEOq9F/5kSbq2hpOcOjonDf3jSA//su7tXgtZpgPQWQXiKO3Ou6qJzQ BdaTIA6o2ke4Eic3Mkj1bdYBtIJxty7z58Q1TK+KumwuOZDJ5JcSmeX8WDN/mZrd5H84 HxUlGcgViO9DBEu/qjZoZ8lRiMmFJOt82WNzKtYHa8yBMCiDod98XkgcOVX8c9uL7/bS dKQIkT76cG5U1yzoSbJIYqRC15MZVwhVlaXAOItyv9USjgXRuC8NFwOm9C2SLDB3l2IB awAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=1OL28pDpkwAGGGAfwLikd1PCNF386k9bklo5A2PTaTI=; b=HlynrVrtTc4BDh18f0zXeuLrNn4mC/YjL2duazl5S09vCQ1dSofUUxOA1CCHQwiiTC V2WtoB/4Dxx0GtCQjhfzE5A+pQXAkrR9IOddyw/TiL8xZS0hsiOop/VWbreg9rdYIdah IAFYt7d97vvUhPOPnJhnrqcdkPK6/A6M4exc8r96TmCquQWcF5uWgeZMdvkNdQ/I0t4x VMJYASPNoQcx7giajEAsyTT3e++mvtcfr5BczRqKSrIR6KtalKXgFZq/HjG7rnQh2cbo et0nFhcQtY1WLLVSErIwBFLZbcxQBeX0WDPWYpT4U/aPjyq2S5BtmUUY6IA03GIpJYK6 MSIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mNGVJGj7; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m20si352915edv.175.2021.03.04.12.36.06; Thu, 04 Mar 2021 12:36:29 -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=@kernel.org header.s=k20201202 header.b=mNGVJGj7; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357229AbhCCKs7 (ORCPT + 99 others); Wed, 3 Mar 2021 05:48:59 -0500 Received: from mail.kernel.org ([198.145.29.99]:42046 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2361127AbhCBXbQ (ORCPT ); Tue, 2 Mar 2021 18:31:16 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0B04F64F3A; Tue, 2 Mar 2021 23:30:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1614727835; bh=eaqbGMdh02IVWXqfTzJMMG0eXfyji5TImxVinimTfZ8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=mNGVJGj74sulK1XpDtC+1PkfDz8pu+vd5dy/11440qyYXhOmgfChR3ePqAJ66/tFm whjv4sQsgIG6JcRttlCQV/iA0GGZCXaZlNGnN3YLuQK4l/L2mXxFz35Xav1425icea XTEP2yCPViD+lHhpxOKV4QhNpSI5eZkHuLbQGWgYyQqgCXwG/9xDgY/ZNO6XNzX/dL euOlDcj+MHjwH7K1sz448UerEeBKMQND73XvXHTysPTBgmqT1JhaL8LyOnDfOWMIM8 uhb9TnP9VyQ9MX+03SHMZWRiczJF0yplPbGVe/KJnvDQRhda8PSQOTt0NmaUh487kp 2p84s69/cvvow== Date: Tue, 2 Mar 2021 15:30:34 -0800 From: Jakub Kicinski To: Martin Schiller Cc: Xie He , 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 Message-ID: <20210302153034.5f4e320b@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <41b77b1c3cf1bb7a51b750faf23900ef@dev.tdt.de> References: <20210216201813.60394-1-xie.he.0141@gmail.com> <20210219103948.6644e61f@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <906d8114f1965965749f1890680f2547@dev.tdt.de> <41b77b1c3cf1bb7a51b750faf23900ef@dev.tdt.de> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 02 Mar 2021 08:04:20 +0100 Martin Schiller wrote: > On 2021-03-01 09:56, Xie He wrote: > > On Sun, Feb 28, 2021 at 10:56 PM Martin Schiller wrote: > >> I mean the change from only one hdlc interface to both hdlc and > >> hdlc_x25. > >> > >> I can't estimate how many users are out there and how their setup > >> looks > >> like. > > > > I'm also thinking about solving this issue by adding new APIs to the > > HDLC subsystem (hdlc_stop_queue / hdlc_wake_queue) for hardware > > drivers to call instead of netif_stop_queue / netif_wake_queue. This > > way we can preserve backward compatibility. > > > > However I'm reluctant to change the code of all the hardware drivers > > because I'm afraid of introducing bugs, etc. When I look at the code > > of "wan/lmc/lmc_main.c", I feel I'm not able to make sure there are no > > bugs (related to stop_queue / wake_queue) after my change (and even > > before my change, actually). There are even serious style problems: > > the majority of its lines are indented by spaces. > > > > So I don't want to mess with all the hardware drivers. Hardware driver > > developers (if they wish to properly support hdlc_x25) should do the > > change themselves. This is not a problem for me, because I use my own > > out-of-tree hardware driver. However if I add APIs with no user code > > in the kernel, other developers may think these APIs are not > > necessary. > > I don't think a change that affects the entire HDLC subsystem is > justified, since the actual problem only affects the hdlc_x25 area. > > The approach with the additional hdlc_x25 is clean and purposeful and > I personally could live with it. > > I just don't see myself in the position to decide such a change at the > moment. > > @Jakub: What is your opinion on this. Hard question to answer, existing users seem happy and Xie's driver isn't upstream, so the justification for potentially breaking backward compatibility isn't exactly "strong". Can we cop out and add a knob somewhere to control spawning the extra netdev? Let people who just want a newer kernel carry on without distractions and those who want the extra layer can flip the switch?