Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp8301079pxb; Fri, 19 Feb 2021 12:32:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJywhJyVLUVKPkXnoNioEKvMoPixbYVWToHjZ7xWApii977m5L+GAdVWXMzvxEqdH1pqX39E X-Received: by 2002:a50:bf4a:: with SMTP id g10mr10742027edk.201.1613766723275; Fri, 19 Feb 2021 12:32:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613766723; cv=none; d=google.com; s=arc-20160816; b=dTwFYrPUMaOP6Nt5vgQR4xQqJMy9sRITB9LN84KVyDOxg4IdtlI241WOy576p72dAL DVo5TqdYkc87apU/jko3VhZloXOGV6s7mOJNZUf7N0kQT4SRGYlgogXDIbh+pYwq7oLy EpxXSDF01YWJe8A7J+zJ8CgNrXaUQMEE41k6k3qMy6G+DevZrDHIRbMBSSR5+qC2rHnR lYJ4xcB5xuJAO/LGtSLQ3VRkHUeesvhxc2hASYuQy31vAXXEjw7wlTsmayZvvofT1fjr RQUzG2nPr6c8wYlWQ0cTbrqes87VfnZYCvv5lykQTBnLiVj2fSj5g0Y8v2oZ9kM0670q Svgg== 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=s4EqFO0bHbbTwpYb76+dNzJNfpMa1CvcusLleWdgGeU=; b=FCL0trk0v25bTGwCoTmXJin4aEL0aE/pfeXwbZOzqDr8URGwXzZ9ZMBNQp1nmZILFv gY7yLxx9Rshs8+5vTkldd9RQYf2yBwtaCy9BqcgiMJu4Jo6HOZ7cng25Z/1RZvCHnJkl T08swBhmfM9QhHbZIsCrFofjahJHhv1HS72D4aYgY27BW9ftxWqAr2XIYtr53OPim8H4 624BQ/SOPH4ONUHzVdBjBfjJ/ZLSzzjeuvbcU3EQl9Qpd17BB1OaWTfsO9NtfWcGhKQr B2Voigj2iT6WmatNBRPXOKOUQJ+br6dUS/FEqpvBIEcgOnOZ1lfmRbzLTdpqYMFT1vYK +8Wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FjbQtzav; 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 jx6si6374755ejc.37.2021.02.19.12.31.33; Fri, 19 Feb 2021 12:32:03 -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=FjbQtzav; 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 S230001AbhBSU3F (ORCPT + 99 others); Fri, 19 Feb 2021 15:29:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229658AbhBSU3D (ORCPT ); Fri, 19 Feb 2021 15:29:03 -0500 Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D394C061786; Fri, 19 Feb 2021 12:28:23 -0800 (PST) Received: by mail-pg1-x535.google.com with SMTP id o63so5635630pgo.6; Fri, 19 Feb 2021 12:28:23 -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=s4EqFO0bHbbTwpYb76+dNzJNfpMa1CvcusLleWdgGeU=; b=FjbQtzavC+F6wFZFWqI/3sC7jEEjVbmpIItbY6mJdmalBiaERgiiTrttCFz6vibxqB ACzjaHvFiyT4LhlkZXHDFX41AvRRqzGRm3kyo1oP9dnjhEUCN9+yTn0tk0KmGQfRFPxi jSZ37aKyRXYnmrKrgVTxKRxeH/Y9G0gUepagvWzflo/A5CDWZcUaWf0+VE43qvrFfTtj LoMrthb51/s29XZifhv+MklYAlO4isQtEC3eDKR8ACfPCkLi9en75RqU3qVDUlMA+Tcg tXP5A6V7wIiqhECOAnBYymtn7F5J6yo/veej9rXon1y7MbY6zXYRTDvoSS7WRVJxGnrY +EzQ== 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=s4EqFO0bHbbTwpYb76+dNzJNfpMa1CvcusLleWdgGeU=; b=rV6dcjRepkmEwbQvXgLzs2px9KvUSSyL8fspuQtK/+/1XL4Miy3S1Cs6dFZRdqmdyu r3sZLoT1Zbz0uV/TViooxn4SPRJcBZdgH+59tCSv1d7eQgIu2xEN6dxLw21fc48LvLUF oipwqgdIPU/WvqbS8qWfkw7eu/MWroY3hP3YBGXIB9FqVrt8nSUmSw8WuBmVSNMVPpS0 MQDPN3nHTdJQsyfJGe48Kriz0fiEGm936T9/43zhI+RoiKmP/NaAxAjf20F+H9oInJjX gC6ZUqwP/x+Vw6tVEt5IBVEN5M1v+oRGH4w4lXyhR1S1rkhyROPi5HD6DS6jIRtgZ2nl 7irQ== X-Gm-Message-State: AOAM532+azrM5zw3Aj//9kOBSeXAIJP56L5hNJ82Hs5qd9bz32trgR9M AKsYkDQ0AO4pPOnFeveliDVx7eFNPppjWbaJqXUyLsXpEWQ= X-Received: by 2002:a65:56c6:: with SMTP id w6mr10005007pgs.368.1613766503127; Fri, 19 Feb 2021 12:28:23 -0800 (PST) MIME-Version: 1.0 References: <20210216201813.60394-1-xie.he.0141@gmail.com> <20210219103948.6644e61f@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20210219103948.6644e61f@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> From: Xie He Date: Fri, 19 Feb 2021 12:28:12 -0800 Message-ID: Subject: Re: [PATCH net-next RFC v4] net: hdlc_x25: Queue outgoing LAPB frames To: Jakub Kicinski Cc: Leon Romanovsky , "David S. Miller" , Linux X25 , Linux Kernel Network Developers , LKML , Martin Schiller , 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 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.) 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.