|
|
d8f823 |
From ec079f9d2196ec46943d99aa88a0af28e02724aa Mon Sep 17 00:00:00 2001
|
|
|
d8f823 |
From: Alaa Hleihel <ahleihel@redhat.com>
|
|
|
d8f823 |
Date: Sun, 10 May 2020 14:52:26 -0400
|
|
|
d8f823 |
Subject: [PATCH 053/312] [netdrv] net/mlx5: DR, Remove useless set memory to
|
|
|
d8f823 |
zero use memset()
|
|
|
d8f823 |
|
|
|
d8f823 |
Message-id: <20200510145245.10054-64-ahleihel@redhat.com>
|
|
|
d8f823 |
Patchwork-id: 306604
|
|
|
d8f823 |
Patchwork-instance: patchwork
|
|
|
d8f823 |
O-Subject: [RHEL8.3 BZ 1789378 v2 63/82] net/mlx5: DR, Remove useless set memory to zero use memset()
|
|
|
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 f6a8cddfb50a5d530400f10c435f420b15962800
|
|
|
d8f823 |
Author: Wei Yongjun <weiyongjun1@huawei.com>
|
|
|
d8f823 |
Date: Thu Sep 5 09:53:26 2019 +0000
|
|
|
d8f823 |
|
|
|
d8f823 |
net/mlx5: DR, Remove useless set memory to zero use memset()
|
|
|
d8f823 |
|
|
|
d8f823 |
The memory return by kzalloc() has already be set to zero, so
|
|
|
d8f823 |
remove useless memset(0).
|
|
|
d8f823 |
|
|
|
d8f823 |
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
|
|
|
d8f823 |
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
|
|
|
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/steering/dr_send.c | 1 -
|
|
|
d8f823 |
1 file changed, 1 deletion(-)
|
|
|
d8f823 |
|
|
|
d8f823 |
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c b/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c
|
|
|
d8f823 |
index e6c6bf4a9578..c7f10d4f8f8d 100644
|
|
|
d8f823 |
--- a/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c
|
|
|
d8f823 |
+++ b/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c
|
|
|
d8f823 |
@@ -902,7 +902,6 @@ int mlx5dr_send_ring_alloc(struct mlx5dr_domain *dmn)
|
|
|
d8f823 |
goto clean_qp;
|
|
|
d8f823 |
}
|
|
|
d8f823 |
|
|
|
d8f823 |
- memset(dmn->send_ring->buf, 0, size);
|
|
|
d8f823 |
dmn->send_ring->buf_size = size;
|
|
|
d8f823 |
|
|
|
d8f823 |
dmn->send_ring->mr = dr_reg_mr(dmn->mdev,
|
|
|
d8f823 |
--
|
|
|
d8f823 |
2.13.6
|
|
|
d8f823 |
|