|
|
d8f823 |
From 9ad313bd9dbadd1f235e0869170d9eec9662400e Mon Sep 17 00:00:00 2001
|
|
|
d8f823 |
From: Alaa Hleihel <ahleihel@redhat.com>
|
|
|
d8f823 |
Date: Tue, 19 May 2020 07:49:01 -0400
|
|
|
d8f823 |
Subject: [PATCH 239/312] [netdrv] net/mlx5e: en_rep: Create uplink rep root
|
|
|
d8f823 |
table after eswitch offloads table
|
|
|
d8f823 |
|
|
|
d8f823 |
Message-id: <20200519074934.6303-31-ahleihel@redhat.com>
|
|
|
d8f823 |
Patchwork-id: 310538
|
|
|
d8f823 |
Patchwork-instance: patchwork
|
|
|
d8f823 |
O-Subject: [RHEL8.3 BZ 1663246 30/63] net/mlx5e: en_rep: Create uplink rep root table after eswitch offloads table
|
|
|
d8f823 |
Bugzilla: 1790219 1663246
|
|
|
d8f823 |
RH-Acked-by: Marcelo Leitner <mleitner@redhat.com>
|
|
|
d8f823 |
RH-Acked-by: Jarod Wilson <jarod@redhat.com>
|
|
|
d8f823 |
RH-Acked-by: John Linville <linville@redhat.com>
|
|
|
d8f823 |
RH-Acked-by: Ivan Vecera <ivecera@redhat.com>
|
|
|
d8f823 |
RH-Acked-by: Tony Camuso <tcamuso@redhat.com>
|
|
|
d8f823 |
RH-Acked-by: Kamal Heib <kheib@redhat.com>
|
|
|
d8f823 |
|
|
|
d8f823 |
Bugzilla: http://bugzilla.redhat.com/1663246
|
|
|
d8f823 |
Bugzilla: http://bugzilla.redhat.com/1790219
|
|
|
d8f823 |
Upstream: v5.7-rc1
|
|
|
d8f823 |
|
|
|
d8f823 |
commit c6fe5729dcff469be1ee3c516f9d9d2c3f1598c2
|
|
|
d8f823 |
Author: Paul Blakey <paulb@mellanox.com>
|
|
|
d8f823 |
Date: Thu Mar 12 12:23:04 2020 +0200
|
|
|
d8f823 |
|
|
|
d8f823 |
net/mlx5e: en_rep: Create uplink rep root table after eswitch offloads table
|
|
|
d8f823 |
|
|
|
d8f823 |
The eswitch offloads table, which has the reps (vport) rx miss rules,
|
|
|
d8f823 |
was moved from OFFLOADS namespace [0,0] (prio, level), to [1,0], so
|
|
|
d8f823 |
the restore table (the new [0,0]) can come before it. The destinations
|
|
|
d8f823 |
of these miss rules is the rep root ft (ttc for non uplink reps).
|
|
|
d8f823 |
|
|
|
d8f823 |
Uplink rep root ft is created as OFFLOADS namespace [0,1], and is used
|
|
|
d8f823 |
as a hook to next RX prio (either ethtool or ttc), but this fails to
|
|
|
d8f823 |
pass fs_core level's check.
|
|
|
d8f823 |
|
|
|
d8f823 |
Move uplink rep root ft to OFFLOADS prio 1, level 1 ([1,1]), so it
|
|
|
d8f823 |
will keep the same relative position after the restore table
|
|
|
d8f823 |
change.
|
|
|
d8f823 |
|
|
|
d8f823 |
Signed-off-by: Paul Blakey <paulb@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_rep.c | 1 +
|
|
|
d8f823 |
1 file changed, 1 insertion(+)
|
|
|
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 1cb47297285e..797ecdb6a165 100644
|
|
|
d8f823 |
--- a/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
|
|
|
d8f823 |
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
|
|
|
d8f823 |
@@ -1600,6 +1600,7 @@ static int mlx5e_create_rep_root_ft(struct mlx5e_priv *priv)
|
|
|
d8f823 |
}
|
|
|
d8f823 |
|
|
|
d8f823 |
ft_attr.max_fte = 0; /* Empty table, miss rule will always point to next table */
|
|
|
d8f823 |
+ ft_attr.prio = 1;
|
|
|
d8f823 |
ft_attr.level = 1;
|
|
|
d8f823 |
|
|
|
d8f823 |
rpriv->root_ft = mlx5_create_flow_table(ns, &ft_attr);
|
|
|
d8f823 |
--
|
|
|
d8f823 |
2.13.6
|
|
|
d8f823 |
|