Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp7525683pxb; Thu, 18 Feb 2021 12:25:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJxjdLAfAoh9yKyMHMsaEkrHR9I7mdKdOcEB4RNs8oIz1GuTXYTPoUlz7h4saWC6V+85FvQe X-Received: by 2002:a17:907:20a8:: with SMTP id pw8mr5795348ejb.9.1613679945622; Thu, 18 Feb 2021 12:25:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613679945; cv=none; d=google.com; s=arc-20160816; b=CbUKIEK/hefGg12HNM0pAkekiaKj+MgW/6UZM1RwNi6pzhL4kdH06fDyBb/YvFW4oO kU60gWwRK48b0rB6Mn7KquVRiouoC9xFsPonkry29XjbEyy9szowqTKRqGx9vkUoBr1M C8vbZqtjBkdqLbXtDU10sQsKqC+f+uk2IGl65jW48HrhvK2VRYmTwJaXVIJJt0USGIQB U7MqefopaqgYQ5PzSlzXy81F2GhIffKZxCBuznfTDX4vgVESYzYUWclVkCy5mR7iz+Qh UlobRGWGCcfHWnuFOZnVHst7g8J1LLPdNNjV7Y76vKN4YTXYBCGG0lj9pHczX/pAxNCn depQ== 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=lCnJivUm4N39ctfjAGVgyrNIuCixL1r+xFuOLgzirNM=; b=e0INesrQugQ6FauCkYlbqDafoU/18sMdElVrMQR7gGSpnFvuVSwqYvmP+anUmIX4OC lIe2s3Yl9dDjiZJ+4Afr8bJhYVbBwLrY24EcgYmMpG54j50VyaKRPcPfMGe13auLaRAT 5zunLWv6EZ7lHBNgJcFSXrFjRLn9OHD2VLlxBd11pM0N6KjrUar5t9h+DhKQtc8Ilsga 4i2LGTJaxesIvPEKVQ5g1BNiLxuF39FCiaLhh872uq4SHLx24t+anCOt+PchoaysJJaP KosAMw73uDzkWYLJSj9sDlej51a1rrrsq4wXNTsIDNPakdlULOGAMua4okt/8Ub/YAj/ C11A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LGlxBJWg; 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 k7si4177191ejz.76.2021.02.18.12.25.20; Thu, 18 Feb 2021 12:25:45 -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=LGlxBJWg; 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 S230209AbhBRUYk (ORCPT + 99 others); Thu, 18 Feb 2021 15:24:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229652AbhBRUYf (ORCPT ); Thu, 18 Feb 2021 15:24:35 -0500 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65DE5C06178A; Thu, 18 Feb 2021 12:23:40 -0800 (PST) Received: by mail-pf1-x431.google.com with SMTP id 189so2072492pfy.6; Thu, 18 Feb 2021 12:23:40 -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=lCnJivUm4N39ctfjAGVgyrNIuCixL1r+xFuOLgzirNM=; b=LGlxBJWgUjqiVvva2jCU2+C4ql9KVEQCzWLLpjFmlF2cy1LZht+aOBVM1CBWx1Ny24 S0LT51ziI7SkZo3qBD7UP3Hgnq9OGCn7WuyYc5Ee/+dmZNf6vecwdINNaqDzJ+TGpr+D xsn3dakkPjj04tNPYsL5LLFTxlgUlPXyRTd62X2CeBnEJ9yQesH+jzeYNUNdpb2Vc9F7 X4r/FoiaZSdr/Yw6CxYWa8xHJb3Mcnna4Uhla7FFW7rdu2a9jxmdJEycqJDzkl6rz61r pbeHch1uUmo6pzAF2uyq+Sfyw16sDG56D4hcQFCMn6juLtWyR6eDSZgI9NF2WV3EE5jp +V3A== 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=lCnJivUm4N39ctfjAGVgyrNIuCixL1r+xFuOLgzirNM=; b=B9LBSTqwZTox6kk+rBru3f1n5URTMsOQIDNPHz6RTvPVaVlPFWmVIwSF2oVdKi8iOr sUg0KNcAoSGXrB8S0Zcwp8WFkeVZD7xlZopRA7wCzt08fvVULtZCC9iYCvqK+L3EF253 fy5Ezmwm7R7OzXh8bbTxf7/mriNP1lARjIvh8z/7a9/7d7KDEgMvjQMwACpf89U/ekET HHM+TYfU48AQZpAFqEzYqKYh81L3hyVMOC1wukjQTKw3o3m8kDghW00MgYg4cR0jk2EW Fq4XAXWNRrGUQPeYpMqNxvavzyfkR3QrgguNrmG7RSZB7UIXN21d8QIlTskhtjaPImUk jf4w== X-Gm-Message-State: AOAM533Bi+DCYg9rQjxpRxC0I4mYZy3GTPUQSkh5COI80hZonRDZaTYa 2NI3kc0t3juh5T/U1Q32ksnYC7jdAvQtNdHSk5g= X-Received: by 2002:a63:587:: with SMTP id 129mr5461734pgf.233.1613679819838; Thu, 18 Feb 2021 12:23:39 -0800 (PST) MIME-Version: 1.0 References: <20210216201813.60394-1-xie.he.0141@gmail.com> In-Reply-To: From: Xie He Date: Thu, 18 Feb 2021 12:23:28 -0800 Message-ID: Subject: Re: [PATCH net-next RFC v4] net: hdlc_x25: Queue outgoing LAPB frames To: Leon Romanovsky Cc: "David S. Miller" , Jakub Kicinski , 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 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. 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?