Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp13467pxb; Tue, 2 Mar 2021 17:25:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJxZLImKVH5zR+AMOcuHpk89vuhrYr/BsVXJqbZpxDSj7aQzV7/Hw3kaDThz5YWFj3YpOHFE X-Received: by 2002:a17:906:780b:: with SMTP id u11mr23452565ejm.492.1614734709969; Tue, 02 Mar 2021 17:25:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614734709; cv=none; d=google.com; s=arc-20160816; b=qj4Bwp32R1xrLIiTn5Ek7TwOZc1XrResq3rzTTChVVKXb1E2enmYeR6Qo2p/Tdddo6 mg329LPgYv3wQMlPgFyppgexD79jDIYOANE0bV0f7oRV9AADPpSw+9I+a7KHda4R0P6m M0fUjRCozdRuIeRorR/PO9RSNbpK+6mXYUbaUn+ssn42UN9Pb/32tPgGv+jToDH2CNfM q6uEtJzsGChpdM/tpFuUQmWmZbADlsuNMWxbKZS3GwfH+S2rU3jpOuTT9YS9K2FwFUkL kwv1tREceDEEGvLfcI2+B60oCOCivhetbWPyoV5IsYVCnd9yGhAVdUqJEH7BcwQFg3co PLNA== 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=NyhHfDZ8ugLt/niSCTVGjHEDOUQ793ajR15pUZRXsO8=; b=BuavOY86mSZJN80FYJ/M1Cfey4vQjmDrxvw/Mecy3LX1Pt07HqY4gGrG+1SLLeDMTa FYcIdbqhWMnEEaad6cwwf1Ry4DPQTQesPcvkokmOrJsq2zD6vK27ZUNbz0lOV6O83jHK V1Z+l+MwtEYtfo330VxWmL3HdsMbrSBkh01+D1DORrTyMIK5vqXMy+jBCSuvpD7NxrCX oQgNv9GVaNpZn+TUpTjLvtnKNrWabhIkaVlpFWudULzYq/HVtBRoQBiFXfl5uJJhGOPV uxWXxWn6vAU7iGimM+P46ISb3W1YL83SpveLNTVkHShi6Cc3DVPF6Y0c05j8fcZC4EsI 7JYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iVIpCwlU; 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 m7si5678527edd.486.2021.03.02.17.24.47; Tue, 02 Mar 2021 17:25:09 -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=iVIpCwlU; 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 S233441AbhCAJE7 (ORCPT + 99 others); Mon, 1 Mar 2021 04:04:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233580AbhCAI5D (ORCPT ); Mon, 1 Mar 2021 03:57:03 -0500 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7411EC06174A; Mon, 1 Mar 2021 00:56:48 -0800 (PST) Received: by mail-pj1-x1035.google.com with SMTP id i14so9040904pjz.4; Mon, 01 Mar 2021 00:56:48 -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=NyhHfDZ8ugLt/niSCTVGjHEDOUQ793ajR15pUZRXsO8=; b=iVIpCwlUVGPNSTb9erSd3i1a0ryWOOQGA/LBNSkz//6WIOrcQaEa+b/4MOJDhXnh+Q wa92ig0JYpb2mXUChhQmcHyshuyqFCCbSgth2hmWca3NJ4W/m86q0KWnoi7gnOI0ADx+ JFT4SdLXJFSMTmvgpVtobNZDUyW+4n8ndLfuf5CqLaXLsJB26R3w3dwjFRkXvvyn2ipr Bs3wKqOLCtst3S1kirVXLbdrOLuf9Df/xuYzIO12UtfqGSAWtQl8iiTnX5O2gYBzlhlE haj5+QAWbXy1PQbW3e0sLBD5F/FBk/cQoyIysJW7c3AdgF5RQgEI1KsnrtnI0s/VcJor s58g== 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=NyhHfDZ8ugLt/niSCTVGjHEDOUQ793ajR15pUZRXsO8=; b=aAwKH9U8MorIl1JeDFOId3d/d9G5jrGGUkVhA/+jcE/8ZSf41zAnUuSIewdvVCTmjh eT1xU6+x7TICsRMnjk4hpBGwu4uqezHEzVEPEdxKFXLPsOe0+l+ltcobMYnkPaVg742w I+4WN9sSKflA9U3qc3tRDyKZiWdQEzV5rx4DcJG1trqOhJFgOQua7jMvNSaOQVLkPDEg 2p+6HoV1gPqh7/xX3lWOdSszelb+7hQMn1509V8EAFJydErVFZ0Ep9TzYfwexVkH/Dga Pi823e/iMks2wiOf9SG61o6DqnoqvMurO2UzsFFpqiNoW+lMXYxIuxV30n58TsKWLMMP KdNg== X-Gm-Message-State: AOAM533v5FQF5ByCnHNYSuzaKp1Iem4TJOz5EhZfxCXKNETnkns+bFZS VgUQgFkYa2B+gkS6i67YjNJPTVJk7TdKIgmkyog= X-Received: by 2002:a17:90a:ea91:: with SMTP id h17mr11526609pjz.66.1614589008075; Mon, 01 Mar 2021 00:56:48 -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: From: Xie He Date: Mon, 1 Mar 2021 00:56:37 -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 28, 2021 at 10:56 PM Martin Schiller wrote: > > >> Also, I have a hard time assessing if such a wrap is really > >> enforceable. > > > > Sorry. I don't understand what you mean. What "wrap" are you referring > > to? > > 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.