Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1502418ybl; Fri, 30 Aug 2019 19:52:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqz7RAJ5ee7RSXApgbhst0nS07DqLA8CD1CCocgt8qb9i0RB7G/STQVWN7hGIXYHVkd6L0Yo X-Received: by 2002:a17:90a:2464:: with SMTP id h91mr1788621pje.9.1567219922174; Fri, 30 Aug 2019 19:52:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567219922; cv=none; d=google.com; s=arc-20160816; b=BL7iNB1PwK3XZr7NGJawaIaR26nbpWabaRYrGQ1w4oZaGNGljPYxixNzxp0hYnRwqb qVuh7xIrZRg/mJXcwpHDVJBtMN6fvHDqaDp1U1m4+ZwgpEJEUgYmdK5TQe97UUEQic2Z nFxksmCljfIoNhb2Ul+TrKT8UqsqYAXG/LIEpcM1a/ZtLUjRBW7W4OfRM2dvBRSqIugq OYWjs4ahX9ZqR7wYcLuyzQ1s4ZHWQ+sSJsreNVRoSyOzaS4f0siNBcm0ZqH1l0EpZaqd n+EFSsWEsHhmbjk5ms6Et7icGkJx2Z+fKmSdtg1hi/7U+DMwLiU9gU3ZFPYdtRAflHXq 60HA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=nnnZFLGWyOQTnFq4FYTKjd/bt0B8vUEZDsm+Wtqm3/s=; b=GsfZQ8cBIkpaeJePlwbo7CQDMxZAEbaWE6+ru0HKuSEdC3Hj9iiXwOxniMdCYS6rEr WX1Yf83iH6B3dC3TzMrczM8y6X9M3btIikVe3FSY+8zysbEn0uIb8dv1B7SsWiunRMAg 4A4s24zMbiZ2udLjW8ykrWu+xonk7wtMXPUbixh9oNmcXM0jwl+l2MruKDFqQwrB0Cv6 PSIegxtAPXDR2JMqblrNAEdA7xai1IZi8NiHIkDJhDmpJv5zttom6PfDxDYElWpPKOgv 1CyzIPMTkTQyXfdLSs00yY+/CMk3hurlkW6cuj04Kv68VfpPPO2WiCWZlKk5b4Ie6W/n JuFg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d35si6323417pla.90.2019.08.30.19.51.32; Fri, 30 Aug 2019 19:52:02 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728332AbfHaCuI (ORCPT + 99 others); Fri, 30 Aug 2019 22:50:08 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:45570 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726976AbfHaCuH (ORCPT ); Fri, 30 Aug 2019 22:50:07 -0400 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::d71]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id E44451550EE28; Fri, 30 Aug 2019 19:50:06 -0700 (PDT) Date: Fri, 30 Aug 2019 19:50:04 -0700 (PDT) Message-Id: <20190830.195004.827507363244913502.davem@davemloft.net> To: saeedm@mellanox.com Cc: efremov@linux.com, linux-kernel@vger.kernel.org, joe@perches.com, borisp@mellanox.com, netdev@vger.kernel.org, leon@kernel.org, akpm@linux-foundation.org Subject: Re: [PATCH v3 03/11] net/mlx5e: Remove unlikely() from WARN*() condition From: David Miller In-Reply-To: References: <20190829165025.15750-1-efremov@linux.com> <20190829165025.15750-3-efremov@linux.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Fri, 30 Aug 2019 19:50:07 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Saeed Mahameed Date: Thu, 29 Aug 2019 21:23:30 +0000 > On Thu, 2019-08-29 at 19:50 +0300, Denis Efremov wrote: >> "unlikely(WARN_ON_ONCE(x))" is excessive. WARN_ON_ONCE() already uses >> unlikely() internally. >> >> Signed-off-by: Denis Efremov >> Cc: Boris Pismenny >> Cc: Saeed Mahameed >> Cc: Leon Romanovsky >> Cc: Joe Perches >> Cc: Andrew Morton >> Cc: netdev@vger.kernel.org >> --- >> drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git >> a/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c >> b/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c >> index 7833ddef0427..e5222d17df35 100644 >> --- a/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c >> +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c >> @@ -408,7 +408,7 @@ struct sk_buff *mlx5e_ktls_handle_tx_skb(struct >> net_device *netdev, >> goto out; >> >> tls_ctx = tls_get_ctx(skb->sk); >> - if (unlikely(WARN_ON_ONCE(tls_ctx->netdev != netdev))) >> + if (WARN_ON_ONCE(tls_ctx->netdev != netdev)) >> goto err_out; >> >> priv_tx = mlx5e_get_ktls_tx_priv_ctx(tls_ctx); > > Acked-by: Saeed Mahameed > > Dave, you can take this one. Ok, applied to net-next as well as the UDP patch.