|
|
d8f823 |
From ab910fa64a2981ba829ba09faacecf273220aa45 Mon Sep 17 00:00:00 2001
|
|
|
d8f823 |
From: Alaa Hleihel <ahleihel@redhat.com>
|
|
|
d8f823 |
Date: Tue, 12 May 2020 10:55:23 -0400
|
|
|
d8f823 |
Subject: [PATCH 206/312] [netdrv] net/mlx5e: Fix q counters on uplink
|
|
|
d8f823 |
representors
|
|
|
d8f823 |
|
|
|
d8f823 |
Message-id: <20200512105530.4207-118-ahleihel@redhat.com>
|
|
|
d8f823 |
Patchwork-id: 306990
|
|
|
d8f823 |
Patchwork-instance: patchwork
|
|
|
d8f823 |
O-Subject: [RHEL8.3 BZ 1789382 117/124] net/mlx5e: Fix q counters on uplink representors
|
|
|
d8f823 |
Bugzilla: 1789382
|
|
|
d8f823 |
RH-Acked-by: Tony Camuso <tcamuso@redhat.com>
|
|
|
d8f823 |
RH-Acked-by: Kamal Heib <kheib@redhat.com>
|
|
|
d8f823 |
RH-Acked-by: Jarod Wilson <jarod@redhat.com>
|
|
|
d8f823 |
|
|
|
d8f823 |
Bugzilla: http://bugzilla.redhat.com/1789382
|
|
|
d8f823 |
Upstream: v5.7-rc5
|
|
|
d8f823 |
|
|
|
d8f823 |
commit 67b38de646894c9a94fe4d6d17719e70cc6028eb
|
|
|
d8f823 |
Author: Roi Dayan <roid@mellanox.com>
|
|
|
d8f823 |
Date: Thu Apr 23 12:37:21 2020 +0300
|
|
|
d8f823 |
|
|
|
d8f823 |
net/mlx5e: Fix q counters on uplink representors
|
|
|
d8f823 |
|
|
|
d8f823 |
Need to allocate the q counters before init_rx which needs them
|
|
|
d8f823 |
when creating the rq.
|
|
|
d8f823 |
|
|
|
d8f823 |
Fixes: 8520fa57a4e9 ("net/mlx5e: Create q counters on uplink representors")
|
|
|
d8f823 |
Signed-off-by: Roi Dayan <roid@mellanox.com>
|
|
|
d8f823 |
Reviewed-by: Vlad Buslov <vladbu@mellanox.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/en_rep.c | 9 ++-------
|
|
|
d8f823 |
1 file changed, 2 insertions(+), 7 deletions(-)
|
|
|
d8f823 |
|
|
|
d8f823 |
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c b/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
|
|
|
d8f823 |
index e8845a6121dd..7ba784575a23 100644
|
|
|
d8f823 |
--- a/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
|
|
|
d8f823 |
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
|
|
|
d8f823 |
@@ -1664,19 +1664,14 @@ static void mlx5e_cleanup_rep_rx(struct mlx5e_priv *priv)
|
|
|
d8f823 |
|
|
|
d8f823 |
static int mlx5e_init_ul_rep_rx(struct mlx5e_priv *priv)
|
|
|
d8f823 |
{
|
|
|
d8f823 |
- int err = mlx5e_init_rep_rx(priv);
|
|
|
d8f823 |
-
|
|
|
d8f823 |
- if (err)
|
|
|
d8f823 |
- return err;
|
|
|
d8f823 |
-
|
|
|
d8f823 |
mlx5e_create_q_counters(priv);
|
|
|
d8f823 |
- return 0;
|
|
|
d8f823 |
+ return mlx5e_init_rep_rx(priv);
|
|
|
d8f823 |
}
|
|
|
d8f823 |
|
|
|
d8f823 |
static void mlx5e_cleanup_ul_rep_rx(struct mlx5e_priv *priv)
|
|
|
d8f823 |
{
|
|
|
d8f823 |
- mlx5e_destroy_q_counters(priv);
|
|
|
d8f823 |
mlx5e_cleanup_rep_rx(priv);
|
|
|
d8f823 |
+ mlx5e_destroy_q_counters(priv);
|
|
|
d8f823 |
}
|
|
|
d8f823 |
|
|
|
d8f823 |
static int mlx5e_init_uplink_rep_tx(struct mlx5e_rep_priv *rpriv)
|
|
|
d8f823 |
--
|
|
|
d8f823 |
2.13.6
|
|
|
d8f823 |
|