Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp8237570pxb; Fri, 19 Feb 2021 10:42:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJyPqfQECj4z1TejUtdYT1eKIFrQRosZuzsnE2Gpw4dRnTSj5fYO8PInrFP1bXLltGK9KRRF X-Received: by 2002:a05:6402:17b6:: with SMTP id j22mr10241031edy.325.1613760170069; Fri, 19 Feb 2021 10:42:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613760170; cv=none; d=google.com; s=arc-20160816; b=p/kg4prLDTEyieYIJ26rJUfdJerQ7BxaAQdKHgs+NhmYCz2rRBuxiK9/B0WcevdYsN DvEiZvrhZhIA6yqAa2gPCFuGibnX9GOVqgvwG0R/IA1at3M6bePvS5pVxhCZP14aOrL7 N3DCpGo3bvq7bvycnHe8eeHWl0Yd3/xwxvE26moIo45GoawAS73yNoze2gV+oS1hdj0t sh08yUvaViu1vy2f+q/Z46m4Pe94zB9wlN7wCe2vkK99UCzGq4DBpWg2y2dVQuLUpCRA Tj/OfZR1rGqThEO+kAw06nimOz5XfY0xu3jIEV/5Vl0Qzd/a9XIGQ98HIj+dW1nPtFWf an1A== 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=e3R9rByJx5bZvVg1CwFQrQKnOxegAv7TiYtYIks0U/8=; b=iE1bP2n1WMY5epUEn9K5HaBZ1DhHJRK61wqmCl8MznpdqLw5TdbBoNXW9dALwHVtsm x9P6+Ycq/dGWbVDEmOahKQmxvAM4cDwcvJLUiPoF3vz7w6KuQfTKsxb8NkykbH9wN0kG zGATvgnfuVZWWu1Dje8znIxXZLz5o5/VlOzqLFtcNWsApE0RJZ0ws+6j1ysH3J2/VIqO Bt2kwUY2sg4ooBtlpdntYYc+4d5eItVUpBOBoCgoi+f5RNrcOwbW/oO6ETuSJzA2nbQt ngcVPPftm4jVGNSgCVGD+Uoik0J4Zl6t8gqAu+/8rjPcibmAcwb8ZYluk8Q155WZg1EJ v/6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sRvq4du1; 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 s9si6222407edu.474.2021.02.19.10.42.21; Fri, 19 Feb 2021 10:42: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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sRvq4du1; 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 S229996AbhBSSkc (ORCPT + 99 others); Fri, 19 Feb 2021 13:40:32 -0500 Received: from mail.kernel.org ([198.145.29.99]:48278 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229524AbhBSSka (ORCPT ); Fri, 19 Feb 2021 13:40:30 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 27AF964E4B; Fri, 19 Feb 2021 18:39:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1613759989; bh=S4xflVDdqs14NUYJblRv311L9/zeoAUjGFAeSE+5qz4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=sRvq4du1RfoBvJgImESRmT4onzhEzDVKmXZxbrYi1+EooL7DdVMeQH9I0Hbga8Gw5 6gKLyH5lfnHd8PGM/VgG1uiOKANfBQuplHWDL5kpERgm20Zm/Roq/VZn0I9XcxDW9T qT/SvTfhnTCgAvHcR71mOQ1gpm+AehndfYmpi9foXl4QJTcaK1CNl6N/By+9bTctx1 nNo09Zmfq1h1jlrWFIenrHrRBZJEalXvGjStHrtfq6iLffj0oOcswRNlIMHzV37+hA rxSiFp2Wd+eDWfFVKb9dc3KE9aZ634ruMBpXWOnhWuF1mX8MtBBpndWC0Ter/ghZWc pzFNiVVfLSXBw== Date: Fri, 19 Feb 2021 10:39:48 -0800 From: Jakub Kicinski To: Xie He Cc: Leon Romanovsky , "David S. Miller" , Linux X25 , Linux Kernel Network Developers , LKML , Martin Schiller , 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: <20210219103948.6644e61f@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: References: <20210216201813.60394-1-xie.he.0141@gmail.com> 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 Thu, 18 Feb 2021 12:23:28 -0800 Xie He wrote: > On Thu, Feb 18, 2021 at 12:06 PM Xie He wrote: > > > > On Thu, Feb 18, 2021 at 11:55 AM Leon Romanovsky wrote: > > > > > > This is how we write code, we use defines instead of constant numbers, > > > comments to describe tricky parts and assign already preprocessed result. > > > > > > There is nothing I can do If you don't like or don't want to use Linux kernel > > > style. > > > > So what is your suggestion exactly? Use defines or write comments? > > > > As I understand, you want to replace the "3 - 1" with "2", and then > > write comments to explain that this "2" is the result of "3 - 1". > > > > Why do you want to do this? You are doing useless things and you force > > readers of this code to think about useless things. > > > > You said this was "Linux kernel style"? Why? Which sentence of the > > Linux kernel style guide suggests your way is better than my way? > > Nevermind, if you *really* want me to replace this "3 - 1" with "2" > and explain in the comment that the "2" is a result of "3 - 1". I'll > do this. I admit this is a style issue. So it is hard to argue and > reach an agreement. Just reply with a request and I'll make the > change. However I'm not able to agree with you in my heart. Not entirely sure what the argument is about but adding constants would certainly help. 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?