|
|
d8f823 |
From 3315feb7c1bc069a18103195cb16ba3d37f78adf Mon Sep 17 00:00:00 2001
|
|
|
d8f823 |
From: Alaa Hleihel <ahleihel@redhat.com>
|
|
|
d8f823 |
Date: Sun, 10 May 2020 14:52:20 -0400
|
|
|
d8f823 |
Subject: [PATCH 048/312] [netdrv] net/mlx5e: Remove unlikely() from WARN*()
|
|
|
d8f823 |
condition
|
|
|
d8f823 |
|
|
|
d8f823 |
Message-id: <20200510145245.10054-58-ahleihel@redhat.com>
|
|
|
d8f823 |
Patchwork-id: 306598
|
|
|
d8f823 |
Patchwork-instance: patchwork
|
|
|
d8f823 |
O-Subject: [RHEL8.3 BZ 1789378 v2 57/82] net/mlx5e: Remove unlikely() from WARN*() condition
|
|
|
d8f823 |
Bugzilla: 1789378
|
|
|
d8f823 |
RH-Acked-by: Kamal Heib <kheib@redhat.com>
|
|
|
d8f823 |
RH-Acked-by: Jarod Wilson <jarod@redhat.com>
|
|
|
d8f823 |
RH-Acked-by: Tony Camuso <tcamuso@redhat.com>
|
|
|
d8f823 |
RH-Acked-by: Jonathan Toppins <jtoppins@redhat.com>
|
|
|
d8f823 |
|
|
|
d8f823 |
Bugzilla: http://bugzilla.redhat.com/1789378
|
|
|
d8f823 |
Upstream: v5.4-rc1
|
|
|
d8f823 |
|
|
|
d8f823 |
commit 7cf92ccb85554c9550bc0a8e892f68f92985024c
|
|
|
d8f823 |
Author: Denis Efremov <efremov@linux.com>
|
|
|
d8f823 |
Date: Thu Aug 29 19:50:17 2019 +0300
|
|
|
d8f823 |
|
|
|
d8f823 |
net/mlx5e: Remove unlikely() from WARN*() condition
|
|
|
d8f823 |
|
|
|
d8f823 |
"unlikely(WARN_ON_ONCE(x))" is excessive. WARN_ON_ONCE() already uses
|
|
|
d8f823 |
unlikely() internally.
|
|
|
d8f823 |
|
|
|
d8f823 |
Signed-off-by: Denis Efremov <efremov@linux.com>
|
|
|
d8f823 |
Cc: Boris Pismenny <borisp@mellanox.com>
|
|
|
d8f823 |
Cc: Saeed Mahameed <saeedm@mellanox.com>
|
|
|
d8f823 |
Cc: Leon Romanovsky <leon@kernel.org>
|
|
|
d8f823 |
Cc: Joe Perches <joe@perches.com>
|
|
|
d8f823 |
Cc: Andrew Morton <akpm@linux-foundation.org>
|
|
|
d8f823 |
Cc: netdev@vger.kernel.org
|
|
|
d8f823 |
Acked-by: Saeed Mahameed <saeedm@mellanox.com>
|
|
|
d8f823 |
Signed-off-by: David S. Miller <davem@davemloft.net>
|
|
|
d8f823 |
|
|
|
d8f823 |
Signed-off-by: Alaa Hleihel <ahleihel@redhat.com>
|
|
|
d8f823 |
Signed-off-by: Frantisek Hrbata <fhrbata@redhat.com>
|
|
|
d8f823 |
---
|
|
|
d8f823 |
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c | 2 +-
|
|
|
d8f823 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
d8f823 |
|
|
|
d8f823 |
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
|
|
|
d8f823 |
index 7833ddef0427..e5222d17df35 100644
|
|
|
d8f823 |
--- a/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c
|
|
|
d8f823 |
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c
|
|
|
d8f823 |
@@ -408,7 +408,7 @@ struct sk_buff *mlx5e_ktls_handle_tx_skb(struct net_device *netdev,
|
|
|
d8f823 |
goto out;
|
|
|
d8f823 |
|
|
|
d8f823 |
tls_ctx = tls_get_ctx(skb->sk);
|
|
|
d8f823 |
- if (unlikely(WARN_ON_ONCE(tls_ctx->netdev != netdev)))
|
|
|
d8f823 |
+ if (WARN_ON_ONCE(tls_ctx->netdev != netdev))
|
|
|
d8f823 |
goto err_out;
|
|
|
d8f823 |
|
|
|
d8f823 |
priv_tx = mlx5e_get_ktls_tx_priv_ctx(tls_ctx);
|
|
|
d8f823 |
--
|
|
|
d8f823 |
2.13.6
|
|
|
d8f823 |
|