Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp484959pxb; Wed, 11 Nov 2020 08:28:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJwdRL5lVEJqsqd3qeZvw/iVfKz8eQ9lFIVHa0NVhgcYzBpK4KGpfvss4ZFLbYN4q5HNHASt X-Received: by 2002:a17:906:604e:: with SMTP id p14mr27540268ejj.515.1605112134680; Wed, 11 Nov 2020 08:28:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605112134; cv=none; d=google.com; s=arc-20160816; b=U2pXQVoyyR18noAeyx3Rp2KvXCskBRdYZTZdv2KB+eh4Nmk/csBGMiX8VRufLNhZZd f4L01u5xMpYrMAxCZ9yFVrxQgKzdpQhS5ef/z0+8pWAMw+7r2C/hpzPDOPzyxvKiJ7rN QIbmEVex9+AA/a9QEiMoI4FboLpauNShA6b+9m6ihLNO2g3Nha4c6yz0inimixSNyROv 09Rl/g/cJmmBsftZeFyWuwODP0EGk+uckNMEWI22NIEH+Ajvvk5hHFMZx6u8YQkxDfoV 2JK0PbK1idbBK5/wU1MkqrRSDuqfKV+UOm4TZYPCBfNK1hOlL4vB0C+Y3CTuIF3jv+mH g75Q== 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=nnZaexAcGpZVStJSY6cdtQ2b4lUHbY19w3lkpzvgi1s=; b=u4l+NpEhDbzfD67bvSGEagD52gYP1BBkrp3NShmInfoQTFVhm1nWbUXTVG1uWDFT1x P8NiBJNZ8xSSpe/raV6RbgFyPXeNqbiysaKlTsuKxWxeCdH92cujqA2XMJnSGOEqMuM5 yMLn6vJKYBHyD2BaJlMhN/RQn3A8qJggbFkeecnky6M2p1fMzTW2NYCx66iiYqRv88M9 DiBFc6RFE40kTpoQGRsRfCRZ1BNI8eFPcIcyH5kibvwz6o5eYnUBBDZQokH1BvNEc/+r LBaLqtsf4C7XB21HxUoo5cLFDaCTuyj30D/MdSRLgPdtAgToCqjATuZ/HvT1ETA4MFKR 9VWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bp3YMwRs; 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 c5si1821483edw.91.2020.11.11.08.28.31; Wed, 11 Nov 2020 08:28:54 -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=default header.b=bp3YMwRs; 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 S1726470AbgKKQ1B (ORCPT + 99 others); Wed, 11 Nov 2020 11:27:01 -0500 Received: from mail.kernel.org ([198.145.29.99]:52222 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725867AbgKKQ1A (ORCPT ); Wed, 11 Nov 2020 11:27:00 -0500 Received: from kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com (unknown [163.114.132.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5385C20678; Wed, 11 Nov 2020 16:26:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605112019; bh=7+NJyL0GEgT4MSWcGvhvoBwfgx+wSr915jXUEQ7+QTQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=bp3YMwRsfMHkL7gpAfC8e2Ic1iP2DKVRla+xYnINt2N2Xom8PtNSGxfLi5L3iEZCt jtjFui5izrHm6eW7DJAScvWOUYdjMPFfg0Mzg0JC6oWyN90AzvsWvFUPlAFK4XvtGT 0qzwY0y47q7Flij5kk9IBKSQ0QH0V6SglLG1MBa4= Date: Wed, 11 Nov 2020 08:26:58 -0800 From: Jakub Kicinski To: Alexander Lobakin Cc: Willem de Bruijn , "David S. Miller" , Alexey Kuznetsov , Hideaki YOSHIFUJI , Paolo Abeni , Steffen Klassert , Eric Dumazet , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 net] net: udp: fix Fast/frag0 UDP GRO Message-ID: <20201111082658.4cd3bb1d@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: References: 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 Wed, 11 Nov 2020 11:29:06 +0000 Alexander Lobakin wrote: > >>> + sk = static_branch_unlikely(&udp_encap_needed_key) ? > >>> + udp4_gro_lookup_skb(skb, uh->source, uh->dest) : > >>> + NULL; > > > > Does this indentation pass checkpatch? > > Sure, I always check my changes with checkpatch --strict. > > > Else, the line limit is no longer strict,a and this only shortens the > > line, so a single line is fine. > > These single lines is about 120 chars, don't find them eye-pleasant. > But, as with "u32" above, they're pure cosmetics and can be changed. let me chime in on the perhaps least important aspect of the patch :) Is there are reason to use a ternary operator here at all? Isn't this cleaner when written with an if statement? sk = NULL; if (static_branch_unlikely(&udp_encap_needed_key)) sk = udp4_gro_lookup_skb(skb, uh->source, uh->dest);