Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp6987306imm; Sun, 20 May 2018 15:43:38 -0700 (PDT) X-Google-Smtp-Source: AB8JxZowKsD7DJA/2tdz3xBDeWbxcZjSYcV68qHsPhRsbb2SRJtssBDU76lqsbUI1lIkSlVZEhdt X-Received: by 2002:aa7:864d:: with SMTP id a13-v6mr17763078pfo.199.1526856218620; Sun, 20 May 2018 15:43:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526856218; cv=none; d=google.com; s=arc-20160816; b=q6vuZqhxkRt0wkFfPM2Sb1go8ac+SRVh8iLUAiokxM4+91W84ejhyuwNd63vOGfAXF X86ysiYSZOH/o78i/ABub2/HXrz3v7HwG/BfCR7er8HGuIzRzR3BfdFt2KhzOZwmcJUq GDlNoXslaTMsMOousl5vViU6Js8RKk+AHOmlmycZWmFyrR71utjZXZ2MXaWmncF7zOJl jbkdiogwtEfJ1TkFcv3oLRQ2MMk7M28XGB2su315OXYXJ2RBWsyO4qjLnmXno4N0EmGB Hi75K+S+kwe4IUc5sszqeegWXd2QlDIlmQpd7XVNNZ6MkTYTwMvQJPKByQEFCpzQhwzq WbmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=z7lKc5+D2rT8mWCu+PMZI/XocSrhB5ndl6QNdFDcWZY=; b=i4od8ziyTIYVurSp9C82rP9f2K9JreDTOpnen4/FNLXecIWnGZ7oj1uJWtFZQ+jmQC /tvNOi2gEu6gl3aRWbVQC6fL1RQtutrIB95qpBDGWsA2exF6uMxCM/B1/QgmRrZH2e53 6LpYewv4m4C2m/cr7DteVJNEtzDH3bTetta8/cvWg/fDx7zt2TmTKy8jsaUUrmSvmaBt LW1+5ou6J6GqaM0CExESRtsBA70BgWZQZz3Erc9mjxWDJIwLFSD6DnyX4uQsIRHFSb+X hLzQdOk6OFRfmHRpmHHpzm+MwqMHl9jV02/Rqbmm6WbdNBmeNlrczRfvAVkMeC17dl/S l+fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=h6SKigDH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id t5-v6si13033161ply.598.2018.05.20.15.43.23; Sun, 20 May 2018 15:43:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=h6SKigDH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1752247AbeETWnL (ORCPT + 99 others); Sun, 20 May 2018 18:43:11 -0400 Received: from mail-qk0-f195.google.com ([209.85.220.195]:43332 "EHLO mail-qk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751030AbeETWnI (ORCPT ); Sun, 20 May 2018 18:43:08 -0400 Received: by mail-qk0-f195.google.com with SMTP id h19-v6so10510181qkj.10; Sun, 20 May 2018 15:43:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=z7lKc5+D2rT8mWCu+PMZI/XocSrhB5ndl6QNdFDcWZY=; b=h6SKigDHryzLRYd9sU23l5BpTf/Fpt/CxKdcW/kosxdZV5d2pn0EMLf7/nNaCwBKTN CmftQKdkzRcb8upqwFYcSOZLqlMexSgDpQZHf6HZ4QTD3SXydZZCivK0aUYLzMjqm+5c Ab8s3fLAsv68ViKdda9lC0n3UyccPdXnkK3uyzJQGbhq/H8kkVwAZ8d8A1cvKfgygcRH vSTMf+ozMqOJ5cKjGj+PYcC7NKuTzBkRWL3GPJr6a7JvScp1iV3oojUYwQoy9tLmd4CM ROCCN9nFBqWrbIkXB1gfcOvPI+dLcbLXc409348qIBrrEVIVJL2t3WMiPlx1Rwu0IL3v RxGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=z7lKc5+D2rT8mWCu+PMZI/XocSrhB5ndl6QNdFDcWZY=; b=U/7gJigmxsWXxPL9o1jm3OlEUULIBct1+r8PkrCA+XGu5OdyorzGPGjyotaMecf1kU 3yQXEYM+/KOltiBZz8qsGUemS0s5Pufn36TyP1ts6vc6+BrDWcC9ZX1ZiAFPQugCq5R2 f8jTa2EzWg0FTAAHr1vh1BiSe9UM4GK1XwInl/w53sjNU3ytBrVBlazdVJ1gTJbIrWMT fw/tNeYnxtl5S+l9LDvPdx+wInFFSAnh15EVLMynqLExs+SP0RlEtaVThqC2zYA2Kyqt pa/yQKkSrflyPtW8XX7ENrTsFy9yvl7fqpvEdhRdFCXefygn7XgbHP2jtK9/8iimwaLx rfrg== X-Gm-Message-State: ALKqPwcKhOoIP2Y9VM/aUjR94xYAPxi6jyX+wZTIHgqVuGF79yOaFG+M DlYX+5+QiKI1GZ/80Lw40B9B70jeaHA= X-Received: by 2002:a37:15d8:: with SMTP id 85-v6mr15871109qkv.150.1526856187829; Sun, 20 May 2018 15:43:07 -0700 (PDT) Received: from localhost.localdomain ([45.4.239.227]) by smtp.gmail.com with ESMTPSA id 25-v6sm10366976qtv.73.2018.05.20.15.43.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 20 May 2018 15:43:06 -0700 (PDT) Received: by localhost.localdomain (Postfix, from userid 1000) id 0CC131810B9; Sun, 20 May 2018 19:43:03 -0300 (-03) Date: Sun, 20 May 2018 19:43:02 -0300 From: Marcelo Ricardo Leitner To: Or Gerlitz Cc: Vlad Buslov , Linux Netdev List , David Miller , Jamal Hadi Salim , Cong Wang , Jiri Pirko , Pablo Neira Ayuso , kadlec@blackhole.kfki.hu, Florian Westphal , Alexei Starovoitov , Daniel Borkmann , Eric Dumazet , keescook@chromium.org, Linux Kernel , netfilter-devel@vger.kernel.org, coreteam@netfilter.org, Yevgeny Kliteynik Subject: Re: [PATCH 13/14] net: sched: use unique idr insert function in unlocked actions Message-ID: <20180520224302.GD26212@localhost.localdomain> References: <1526308035-12484-1-git-send-email-vladbu@mellanox.com> <1526308035-12484-14-git-send-email-vladbu@mellanox.com> <20180519222028.GF5488@localhost.localdomain> <20180520213349.GC26212@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 21, 2018 at 12:40:54AM +0300, Or Gerlitz wrote: > On Mon, May 21, 2018 at 12:33 AM, Marcelo Ricardo Leitner > wrote: > > On Mon, May 21, 2018 at 12:13:06AM +0300, Or Gerlitz wrote: > >> On Sun, May 20, 2018 at 1:20 AM, Marcelo Ricardo Leitner > >> wrote: > >> > On Mon, May 14, 2018 at 05:27:14PM +0300, Vlad Buslov wrote: > >> >> Substitute calls to action insert function with calls to action insert > >> >> unique function that warns if insertion overwrites index in idr. > >> > > >> > I know this patch may be gone on V2, but a general comment, please use > >> > the function names themselves instead of a textualized version. I.e., > >> > s/action insert unique/tcf_idr_insert_unique/ > >> > >> disagree. While doing reviews I found out that if I ask the developer > >> to use higher > >> level / descriptive language and specifically to avoid putting > >> variable / function names in > >> patch titles and change logs, the quality gets ++ big time, vs if the > >> developer is allowed to say > >> > >> net/mlx5: Changed add_vovo_bobo() > >> > >> Added variable do_it_right to add_vovo_bobo(), now we are terribly good. > > > > In your example I agree that it is not helping and it is even allowing > > such empty changelog, just as in the section I highlighted, the > > descriptive language is also not helping IMHO. > > > > I had to read it 3 times to make sure I wasn't missing a modifier word > > when comparing the two functions and well, it's just saying > > "Substitute calls to foo function to bar function". I don't see how > > the textualized version helps in this case while, at least in this > > one, I would have visually recognized the function names way faster. > > > > Sounds like 2 bad examples for either approach. > > Properly written descriptive language is maybe harder to come up with > (specifically for those of us who are not native english speakers, like me) > but is more expressive and helpful for reviews and maintenance. Lets try > to add Vlad to come up with the right higher language and not ask him to > quote function and variable named. Alright.